summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2017-08-09 14:58:12 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2017-08-09 14:58:12 +0000
commite9c12f9e89e3c3c7aac55fe530b4efa9fa301bdc (patch)
tree3118617884bff39c54a413718fe9d1de6e9e0d18 /lib
parent3630ee15bd051af77f62dc9b1687f6e5b0d3fa70 (diff)
Fix conditionals for DH controls.
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/s3_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c
index 6486b468c99..654ef6a274c 100644
--- a/lib/libssl/s3_lib.c
+++ b/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_lib.c,v 1.145 2017/07/15 17:40:53 jsing Exp $ */
+/* $OpenBSD: s3_lib.c,v 1.146 2017/08/09 14:58:11 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1778,7 +1778,7 @@ ssl3_ctrl(SSL *s, int cmd, long larg, void *parg)
{
int ret = 0;
- if (cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SET_TMP_DH_CB) {
+ if (cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SET_TMP_ECDH) {
if (!ssl_cert_inst(&s->cert)) {
SSLerror(s, ERR_R_MALLOC_FAILURE);
return (0);
@@ -1981,7 +1981,7 @@ ssl3_callback_ctrl(SSL *s, int cmd, void (*fp)(void))
{
int ret = 0;
- if (cmd == SSL_CTRL_SET_TMP_DH_CB) {
+ if (cmd == SSL_CTRL_SET_TMP_DH_CB || cmd == SSL_CTRL_SET_TMP_ECDH_CB) {
if (!ssl_cert_inst(&s->cert)) {
SSLerror(s, ERR_R_MALLOC_FAILURE);
return (0);