mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
Adding the missing Algorithms to ssh_get_kex_algo() function
Signed-off-by: Aditya Sinha <aditya072006@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
65b2591b91
commit
95150b1137
@@ -451,8 +451,12 @@ const char* ssh_get_kex_algo(ssh_session session) {
|
|||||||
return "curve25519-sha256@libssh.org";
|
return "curve25519-sha256@libssh.org";
|
||||||
case SSH_KEX_SNTRUP761X25519_SHA512_OPENSSH_COM:
|
case SSH_KEX_SNTRUP761X25519_SHA512_OPENSSH_COM:
|
||||||
return "sntrup761x25519-sha512@openssh.com";
|
return "sntrup761x25519-sha512@openssh.com";
|
||||||
default:
|
#ifdef WITH_GEX
|
||||||
break;
|
case SSH_KEX_DH_GEX_SHA1:
|
||||||
|
return "diffie-hellman-group-exchange-sha1";
|
||||||
|
case SSH_KEX_DH_GEX_SHA256:
|
||||||
|
return "diffie-hellman-group-exchange-sha256";
|
||||||
|
#endif /* WITH_GEX */
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user