diff options
Diffstat (limited to 'myproposal.h')
-rw-r--r-- | myproposal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/myproposal.h b/myproposal.h index 56f8c4a84..8da2ac91f 100644 --- a/myproposal.h +++ b/myproposal.h | |||
@@ -29,6 +29,7 @@ | |||
29 | /* conditional algorithm support */ | 29 | /* conditional algorithm support */ |
30 | 30 | ||
31 | #ifdef OPENSSL_HAS_ECC | 31 | #ifdef OPENSSL_HAS_ECC |
32 | #ifdef OPENSSL_HAS_NISTP521 | ||
32 | # define KEX_ECDH_METHODS \ | 33 | # define KEX_ECDH_METHODS \ |
33 | "ecdh-sha2-nistp256," \ | 34 | "ecdh-sha2-nistp256," \ |
34 | "ecdh-sha2-nistp384," \ | 35 | "ecdh-sha2-nistp384," \ |
@@ -42,6 +43,17 @@ | |||
42 | "ecdsa-sha2-nistp384," \ | 43 | "ecdsa-sha2-nistp384," \ |
43 | "ecdsa-sha2-nistp521," | 44 | "ecdsa-sha2-nistp521," |
44 | #else | 45 | #else |
46 | # define KEX_ECDH_METHODS \ | ||
47 | "ecdh-sha2-nistp256," \ | ||
48 | "ecdh-sha2-nistp384," | ||
49 | # define HOSTKEY_ECDSA_CERT_METHODS \ | ||
50 | "ecdsa-sha2-nistp256-cert-v01@openssh.com," \ | ||
51 | "ecdsa-sha2-nistp384-cert-v01@openssh.com," | ||
52 | # define HOSTKEY_ECDSA_METHODS \ | ||
53 | "ecdsa-sha2-nistp256," \ | ||
54 | "ecdsa-sha2-nistp384," | ||
55 | #endif | ||
56 | #else | ||
45 | # define KEX_ECDH_METHODS | 57 | # define KEX_ECDH_METHODS |
46 | # define HOSTKEY_ECDSA_CERT_METHODS | 58 | # define HOSTKEY_ECDSA_CERT_METHODS |
47 | # define HOSTKEY_ECDSA_METHODS | 59 | # define HOSTKEY_ECDSA_METHODS |