summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2014-10-15 13:57:21 +0000
committerjsing <>2014-10-15 13:57:21 +0000
commit82d7d4c30ddf0141b961a7d8cda64db0be10975a (patch)
treec7e09c4c29be3fd313c47424c46965466428c717
parent5ffc31d9ebd0227b89d8a242e01714d3c53dc67c (diff)
downloadopenbsd-82d7d4c30ddf0141b961a7d8cda64db0be10975a.tar.gz
openbsd-82d7d4c30ddf0141b961a7d8cda64db0be10975a.tar.bz2
openbsd-82d7d4c30ddf0141b961a7d8cda64db0be10975a.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 '')
-rw-r--r--src/lib/libssl/src/ssl/ssl.h8
-rw-r--r--src/lib/libssl/src/ssl/ssl_ciph.c12
-rw-r--r--src/lib/libssl/ssl.h8
-rw-r--r--src/lib/libssl/ssl_ciph.c12
4 files changed, 32 insertions, 8 deletions
diff --git a/src/lib/libssl/src/ssl/ssl.h b/src/lib/libssl/src/ssl/ssl.h
index 1e9e846195..2b1ceaf2c7 100644
--- a/src/lib/libssl/src/ssl/ssl.h
+++ b/src/lib/libssl/src/ssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.67 2014/10/03 13:58:18 jsing Exp $ */ 1/* $OpenBSD: ssl.h,v 1.68 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 *
@@ -259,11 +259,13 @@ extern "C" {
259 259
260#define SSL_TXT_DSS "DSS" 260#define SSL_TXT_DSS "DSS"
261#define SSL_TXT_DH "DH" 261#define SSL_TXT_DH "DH"
262#define SSL_TXT_EDH "EDH" /* same as "kEDH:-ADH" */ 262#define SSL_TXT_DHE "DHE" /* same as "kDHE:-ADH" */
263#define SSL_TXT_EDH "EDH" /* previous name for DHE */
263#define SSL_TXT_ADH "ADH" 264#define SSL_TXT_ADH "ADH"
264#define SSL_TXT_RSA "RSA" 265#define SSL_TXT_RSA "RSA"
265#define SSL_TXT_ECDH "ECDH" 266#define SSL_TXT_ECDH "ECDH"
266#define SSL_TXT_EECDH "EECDH" /* same as "kEECDH:-AECDH" */ 267#define SSL_TXT_ECDHE "ECDHE" /* same as "kECDHE:-AECDH" */
268#define SSL_TXT_EECDH "EECDH" /* previous name for ECDHE */
267#define SSL_TXT_AECDH "AECDH" 269#define SSL_TXT_AECDH "AECDH"
268#define SSL_TXT_ECDSA "ECDSA" 270#define SSL_TXT_ECDSA "ECDSA"
269#define SSL_TXT_KRB5 "KRB5" 271#define SSL_TXT_KRB5 "KRB5"
diff --git a/src/lib/libssl/src/ssl/ssl_ciph.c b/src/lib/libssl/src/ssl/ssl_ciph.c
index 35e81e18f1..4bd085310f 100644
--- a/src/lib/libssl/src/ssl/ssl_ciph.c
+++ b/src/lib/libssl/src/ssl/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,
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 1e9e846195..2b1ceaf2c7 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.67 2014/10/03 13:58:18 jsing Exp $ */ 1/* $OpenBSD: ssl.h,v 1.68 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 *
@@ -259,11 +259,13 @@ extern "C" {
259 259
260#define SSL_TXT_DSS "DSS" 260#define SSL_TXT_DSS "DSS"
261#define SSL_TXT_DH "DH" 261#define SSL_TXT_DH "DH"
262#define SSL_TXT_EDH "EDH" /* same as "kEDH:-ADH" */ 262#define SSL_TXT_DHE "DHE" /* same as "kDHE:-ADH" */
263#define SSL_TXT_EDH "EDH" /* previous name for DHE */
263#define SSL_TXT_ADH "ADH" 264#define SSL_TXT_ADH "ADH"
264#define SSL_TXT_RSA "RSA" 265#define SSL_TXT_RSA "RSA"
265#define SSL_TXT_ECDH "ECDH" 266#define SSL_TXT_ECDH "ECDH"
266#define SSL_TXT_EECDH "EECDH" /* same as "kEECDH:-AECDH" */ 267#define SSL_TXT_ECDHE "ECDHE" /* same as "kECDHE:-AECDH" */
268#define SSL_TXT_EECDH "EECDH" /* previous name for ECDHE */
267#define SSL_TXT_AECDH "AECDH" 269#define SSL_TXT_AECDH "AECDH"
268#define SSL_TXT_ECDSA "ECDSA" 270#define SSL_TXT_ECDSA "ECDSA"
269#define SSL_TXT_KRB5 "KRB5" 271#define SSL_TXT_KRB5 "KRB5"
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,