diff options
author | 2014-10-15 13:57:21 +0000 | |
---|---|---|
committer | 2014-10-15 13:57:21 +0000 | |
commit | daffc75c8da7789c0e161ea3fcbefff6613b0d46 (patch) | |
tree | 4e893fae72dbf801c2f01e7e4fccfd2fdd99deef /lib/libssl/ssl_ciph.c | |
parent | pppx(4): Correct pppx_dev_lookup() and pppx_dev2pxd() local declarations (diff) | |
download | wireguard-openbsd-daffc75c8da7789c0e161ea3fcbefff6613b0d46.tar.xz wireguard-openbsd-daffc75c8da7789c0e161ea3fcbefff6613b0d46.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 'lib/libssl/ssl_ciph.c')
-rw-r--r-- | lib/libssl/ssl_ciph.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c index 35e81e18f17..4bd085310f1 100644 --- a/lib/libssl/ssl_ciph.c +++ b/lib/libssl/ssl_ciph.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_ciph.c,v 1.69 2014/10/03 06:02:38 doug Exp $ */ +/* $OpenBSD: ssl_ciph.c,v 1.70 2014/10/15 13:57:21 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -327,11 +327,21 @@ static const SSL_CIPHER cipher_aliases[] = { /* aliases combining key exchange and server authentication */ { + .name = SSL_TXT_DHE, + .algorithm_mkey = SSL_kDHE, + .algorithm_auth = ~SSL_aNULL, + }, + { .name = SSL_TXT_EDH, .algorithm_mkey = SSL_kDHE, .algorithm_auth = ~SSL_aNULL, }, { + .name = SSL_TXT_ECDHE, + .algorithm_mkey = SSL_kECDHE, + .algorithm_auth = ~SSL_aNULL, + }, + { .name = SSL_TXT_EECDH, .algorithm_mkey = SSL_kECDHE, .algorithm_auth = ~SSL_aNULL, |