Related: #1622594 - tests: make ssh-keygen always produce PEM format
The default format produced by openssh-7.8p1 cannot be consumed by currently available versions of libssh and libssh2.
This commit is contained in:
parent
964e6fe0a3
commit
503408095b
33
0105-curl-7.61.0-tests-ssh-keygen.patch
Normal file
33
0105-curl-7.61.0-tests-ssh-keygen.patch
Normal file
@ -0,0 +1,33 @@
|
||||
From daded1aff280104d16e405fcd1be1a857c74b191 Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Mon, 27 Aug 2018 15:53:35 +0200
|
||||
Subject: [PATCH] tests: make ssh-keygen always produce PEM format
|
||||
|
||||
The default format produced by openssh-7.8p1 cannot be consumed
|
||||
by currently available versions of libssh and libssh2.
|
||||
---
|
||||
tests/sshserver.pl | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
|
||||
index 9b3d122..d477a02 100755
|
||||
--- a/tests/sshserver.pl
|
||||
+++ b/tests/sshserver.pl
|
||||
@@ -372,12 +372,12 @@ if((! -e $hstprvkeyf) || (! -s $hstprvkeyf) ||
|
||||
# Make sure all files are gone so ssh-keygen doesn't complain
|
||||
unlink($hstprvkeyf, $hstpubkeyf, $cliprvkeyf, $clipubkeyf);
|
||||
logmsg 'generating host keys...' if($verbose);
|
||||
- if(system "\"$sshkeygen\" -q -t rsa -f $hstprvkeyf -C 'curl test server' -N ''") {
|
||||
+ if(system "\"$sshkeygen\" -q -t rsa -f $hstprvkeyf -C 'curl test server' -N '' -m PEM") {
|
||||
logmsg 'Could not generate host key';
|
||||
exit 1;
|
||||
}
|
||||
logmsg 'generating client keys...' if($verbose);
|
||||
- if(system "\"$sshkeygen\" -q -t rsa -f $cliprvkeyf -C 'curl test client' -N ''") {
|
||||
+ if(system "\"$sshkeygen\" -q -t rsa -f $cliprvkeyf -C 'curl test client' -N '' -m PEM") {
|
||||
logmsg 'Could not generate client key';
|
||||
exit 1;
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
@ -35,6 +35,9 @@ Patch102: 0102-curl-7.36.0-debug.patch
|
||||
# use localhost6 instead of ip6-localhost in the curl test-suite
|
||||
Patch104: 0104-curl-7.19.7-localhost6.patch
|
||||
|
||||
# tests: make ssh-keygen always produce PEM format (#1622594)
|
||||
Patch105: 0105-curl-7.61.0-tests-ssh-keygen.patch
|
||||
|
||||
Provides: curl-full = %{version}-%{release}
|
||||
Provides: webclient
|
||||
URL: https://curl.haxx.se/
|
||||
@ -185,6 +188,7 @@ be installed.
|
||||
%patch101 -p1
|
||||
%patch102 -p1
|
||||
%patch104 -p1
|
||||
%patch105 -p1
|
||||
|
||||
# regenerate Makefile.in files
|
||||
aclocal -I m4
|
||||
@ -326,6 +330,7 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
|
||||
|
||||
%changelog
|
||||
* Wed Sep 05 2018 Kamil Dudka <kdudka@redhat.com> - 7.59.0-7
|
||||
- tests: make ssh-keygen always produce PEM format (#1622594)
|
||||
- scp/sftp: fix infinite connect loop on invalid private key (#1595135)
|
||||
|
||||
* Thu Aug 09 2018 Kamil Dudka <kdudka@redhat.com> - 7.59.0-6
|
||||
|
Loading…
Reference in New Issue
Block a user