diff options
author | jsing <> | 2014-10-15 13:57:21 +0000 |
---|---|---|
committer | jsing <> | 2014-10-15 13:57:21 +0000 |
commit | d1ef05b60b0377a5eac02b3693ea5a0161a51731 (patch) | |
tree | c7e09c4c29be3fd313c47424c46965466428c717 /src/lib/libssl/ssl_ciph.c | |
parent | dcf0c85a37d1b2da6424029201cb837c14348dc0 (diff) | |
download | openbsd-d1ef05b60b0377a5eac02b3693ea5a0161a51731.tar.gz openbsd-d1ef05b60b0377a5eac02b3693ea5a0161a51731.tar.bz2 openbsd-d1ef05b60b0377a5eac02b3693ea5a0161a51731.zip |
Add cipher aliases for DHE (the correct name for EDH) and ECDHE (the
correct name for EECDH). The EDH and EECDH aliases remain for backwards
compatibility.
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 35e81e18f1..4bd085310f 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.69 2014/10/03 06:02:38 doug Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.70 2014/10/15 13:57:21 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -327,11 +327,21 @@ static const SSL_CIPHER cipher_aliases[] = { | |||
327 | 327 | ||
328 | /* aliases combining key exchange and server authentication */ | 328 | /* aliases combining key exchange and server authentication */ |
329 | { | 329 | { |
330 | .name = SSL_TXT_DHE, | ||
331 | .algorithm_mkey = SSL_kDHE, | ||
332 | .algorithm_auth = ~SSL_aNULL, | ||
333 | }, | ||
334 | { | ||
330 | .name = SSL_TXT_EDH, | 335 | .name = SSL_TXT_EDH, |
331 | .algorithm_mkey = SSL_kDHE, | 336 | .algorithm_mkey = SSL_kDHE, |
332 | .algorithm_auth = ~SSL_aNULL, | 337 | .algorithm_auth = ~SSL_aNULL, |
333 | }, | 338 | }, |
334 | { | 339 | { |
340 | .name = SSL_TXT_ECDHE, | ||
341 | .algorithm_mkey = SSL_kECDHE, | ||
342 | .algorithm_auth = ~SSL_aNULL, | ||
343 | }, | ||
344 | { | ||
335 | .name = SSL_TXT_EECDH, | 345 | .name = SSL_TXT_EECDH, |
336 | .algorithm_mkey = SSL_kECDHE, | 346 | .algorithm_mkey = SSL_kECDHE, |
337 | .algorithm_auth = ~SSL_aNULL, | 347 | .algorithm_auth = ~SSL_aNULL, |