mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
Remove support for DSA Keys
Solving issue #110. The original work is at !231 Some changes were needed because the newly added features in master through time Signed-off-by: Mohammad Shehar Yaar Tausif <sheharyaar48@gmail.com> Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
486df37a84
commit
a3a13eb3a8
14
src/kex.c
14
src/kex.c
@@ -118,14 +118,6 @@
|
||||
#define EC_PUBLIC_KEY_ALGORITHMS ""
|
||||
#endif /* HAVE_ECC */
|
||||
|
||||
#ifdef HAVE_DSA
|
||||
#define DSA_HOSTKEYS ",ssh-dss"
|
||||
#define DSA_PUBLIC_KEY_ALGORITHMS ",ssh-dss-cert-v01@openssh.com"
|
||||
#else
|
||||
#define DSA_HOSTKEYS ""
|
||||
#define DSA_PUBLIC_KEY_ALGORITHMS ""
|
||||
#endif /* HAVE_DSA */
|
||||
|
||||
#ifdef WITH_INSECURE_NONE
|
||||
#define NONE ",none"
|
||||
#else
|
||||
@@ -138,8 +130,7 @@
|
||||
EC_SK_HOSTKEYS \
|
||||
"rsa-sha2-512," \
|
||||
"rsa-sha2-256," \
|
||||
"ssh-rsa" \
|
||||
DSA_HOSTKEYS
|
||||
"ssh-rsa"
|
||||
#define DEFAULT_HOSTKEYS "ssh-ed25519," \
|
||||
EC_HOSTKEYS \
|
||||
"sk-ssh-ed25519@openssh.com," \
|
||||
@@ -152,8 +143,7 @@
|
||||
EC_PUBLIC_KEY_ALGORITHMS \
|
||||
"rsa-sha2-512-cert-v01@openssh.com," \
|
||||
"rsa-sha2-256-cert-v01@openssh.com," \
|
||||
"ssh-rsa-cert-v01@openssh.com" \
|
||||
DSA_PUBLIC_KEY_ALGORITHMS "," \
|
||||
"ssh-rsa-cert-v01@openssh.com," \
|
||||
HOSTKEYS
|
||||
#define DEFAULT_PUBLIC_KEY_ALGORITHMS "ssh-ed25519-cert-v01@openssh.com," \
|
||||
EC_PUBLIC_KEY_ALGORITHMS \
|
||||
|
||||
Reference in New Issue
Block a user