[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 202/264: libssh: Use new ECDSA key types to check known hosts
From: |
gnunet |
Subject: |
[gnurl] 202/264: libssh: Use new ECDSA key types to check known hosts |
Date: |
Thu, 30 Apr 2020 16:08:25 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 14bf7eb6e526f7ce0c60c1c972b4d935c1c5132d
Author: Anderson Toshiyuki Sasaki <address@hidden>
AuthorDate: Thu Apr 16 19:26:06 2020 +0200
libssh: Use new ECDSA key types to check known hosts
From libssh 0.9.0, ssh_key_type() returns different key types for ECDSA
keys depending on the curve.
Signed-off-by: Anderson Toshiyuki Sasaki <address@hidden>
Fixes #5252
Closes #5253
---
lib/vssh/libssh.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index 08d9f9e0f..54bc5e019 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -403,6 +403,9 @@ static int myssh_is_known(struct connectdata *conn)
knownkey.keytype = CURLKHTYPE_RSA1;
break;
case SSH_KEYTYPE_ECDSA:
+ case SSH_KEYTYPE_ECDSA_P256:
+ case SSH_KEYTYPE_ECDSA_P384:
+ case SSH_KEYTYPE_ECDSA_P521:
knownkey.keytype = CURLKHTYPE_ECDSA;
break;
case SSH_KEYTYPE_ED25519:
@@ -470,6 +473,11 @@ static int myssh_is_known(struct connectdata *conn)
foundkey.keytype = CURLKHTYPE_RSA1;
break;
case SSH_KEYTYPE_ECDSA:
+#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0,9,0)
+ case SSH_KEYTYPE_ECDSA_P256:
+ case SSH_KEYTYPE_ECDSA_P384:
+ case SSH_KEYTYPE_ECDSA_P521:
+#endif
foundkey.keytype = CURLKHTYPE_ECDSA;
break;
#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0,7,0)
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 250/264: libssh: avoid options override by configuration files, (continued)
- [gnurl] 250/264: libssh: avoid options override by configuration files, gnunet, 2020/04/30
- [gnurl] 191/264: sockfilt: fix broken pipe on Windows to be ready in select_ws, gnunet, 2020/04/30
- [gnurl] 224/264: mqtt: improve the state machine, gnunet, 2020/04/30
- [gnurl] 219/264: add more alt-svc test coverage, gnunet, 2020/04/30
- [gnurl] 218/264: test1247: use http server to get the port number set, gnunet, 2020/04/30
- [gnurl] 246/264: tests: make runtests check that disabled tests exists, gnunet, 2020/04/30
- [gnurl] 200/264: mqttd: s/errno/SOCKERRNO, gnunet, 2020/04/30
- [gnurl] 201/264: appveyor: add Unicode winbuild jobs, gnunet, 2020/04/30
- [gnurl] 199/264: buildconf: use find -execdir instead, remove -print and the ares files, gnunet, 2020/04/30
- [gnurl] 197/264: copyright: bump the copyright year range, gnunet, 2020/04/30
- [gnurl] 202/264: libssh: Use new ECDSA key types to check known hosts,
gnunet <=
- [gnurl] 198/264: buildconf: avoid using tempfile when removing files, gnunet, 2020/04/30
- [gnurl] 256/264: copyright updates: adjust year ranges, gnunet, 2020/04/30
- [gnurl] 255/264: CI: do not include */ci branches in PR builds, gnunet, 2020/04/30
- [gnurl] 254/264: runtests: check for the disabled tests relative srcdir, gnunet, 2020/04/30
- [gnurl] 253/264: runtests: revert commenting out a line I did for debugging, gnunet, 2020/04/30
- [gnurl] 261/264: THANKS: synced with the 7.70.0 release, gnunet, 2020/04/30
- [gnurl] 249/264: runtests: when <killserver> mentions http, kill http/2 too, gnunet, 2020/04/30
- [gnurl] 260/264: headers: copyright range fix, gnunet, 2020/04/30
- [gnurl] 251/264: lib: clean up whitespace, gnunet, 2020/04/30
- [gnurl] 257/264: travis: bump the wolfssl CI build to use 4.4.0, gnunet, 2020/04/30