From a4c7911a48dadb4f68ba6b38bb1bf3f061b747f6 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 14 Aug 2018 12:47:18 +0200 Subject: ssh-libssh: fix infinite connect loop on invalid private key Added test 656 (based on test 604) to verify the fix. Bug: https://bugzilla.redhat.com/1595135 Closes #2879 --- tests/data/Makefile.inc | 2 +- tests/data/test656 | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/data/test656 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 20274b37c..518a5a543 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -83,7 +83,7 @@ test617 test618 test619 test620 test621 test622 test623 test624 test625 \ test626 test627 test628 test629 test630 test631 test632 test633 test634 \ test635 test636 test637 test638 test639 test640 test641 test642 \ test643 test644 test645 test646 test647 test648 test649 test650 test651 \ -test652 test653 test654 test655 \ +test652 test653 test654 test655 test656 \ \ test700 test701 test702 test703 test704 test705 test706 test707 test708 \ test709 test710 test711 test712 test713 test714 test715 \ diff --git a/tests/data/test656 b/tests/data/test656 new file mode 100644 index 000000000..4107d3d17 --- /dev/null +++ b/tests/data/test656 @@ -0,0 +1,33 @@ + + + +SFTP +FAILURE + + + +# +# Client-side + + +sftp + + +SFTP retrieval with nonexistent private key file + + +--key DOES_NOT_EXIST --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --connect-timeout 8 + + + +# +# Verify data after the test has been "shot" + + +disable + + +67 + + + -- cgit v1.2.3