diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/t1_lib.c | 17 | 
1 files changed, 6 insertions, 11 deletions
| diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index ea44e7579a..42fd18fe2d 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: t1_lib.c,v 1.123 2017/08/09 22:24:25 jsing Exp $ */ | 1 | /* $OpenBSD: t1_lib.c,v 1.124 2017/08/10 17:18:38 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 | * | 
| @@ -611,18 +611,13 @@ tls1_check_ec_tmp_key(SSL *s) | |||
| 611 | EC_KEY *ec = s->cert->ecdh_tmp; | 611 | EC_KEY *ec = s->cert->ecdh_tmp; | 
| 612 | uint16_t curve_id; | 612 | uint16_t curve_id; | 
| 613 | 613 | ||
| 614 | if (s->cert->ecdh_tmp_auto != 0) { | 614 | /* Need a shared curve. */ | 
| 615 | /* Need a shared curve. */ | 615 | if (tls1_get_shared_curve(s) != NID_undef) | 
| 616 | if (tls1_get_shared_curve(s) != NID_undef) | 616 | return (1); | 
| 617 | return (1); | ||
| 618 | return (0); | ||
| 619 | } | ||
| 620 | 617 | ||
| 621 | if (ec == NULL) { | 618 | if (ec == NULL) | 
| 622 | if (s->cert->ecdh_tmp_cb != NULL) | ||
| 623 | return (1); | ||
| 624 | return (0); | 619 | return (0); | 
| 625 | } | 620 | |
| 626 | if (tls1_set_ec_id(&curve_id, NULL, ec) != 1) | 621 | if (tls1_set_ec_id(&curve_id, NULL, ec) != 1) | 
| 627 | return (0); | 622 | return (0); | 
| 628 | 623 | ||
