summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_cert.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c
index 30e99ad184..b5c9fe5dce 100644
--- a/src/lib/libssl/ssl_cert.c
+++ b/src/lib/libssl/ssl_cert.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_cert.c,v 1.95 2022/02/05 14:54:10 jsing Exp $ */ 1/* $OpenBSD: ssl_cert.c,v 1.96 2022/06/28 20:42:22 tb 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 *
@@ -170,6 +170,13 @@ ssl_cert_new(void)
170 } 170 }
171 ret->key = &(ret->pkeys[SSL_PKEY_RSA]); 171 ret->key = &(ret->pkeys[SSL_PKEY_RSA]);
172 ret->references = 1; 172 ret->references = 1;
173#if defined(LIBRESSL_HAS_SECURITY_LEVEL)
174 ret->security_cb = ssl_security_default_cb;
175#else
176 ret->security_cb = ssl_security_dummy_cb;
177#endif
178 ret->security_level = OPENSSL_TLS_SECURITY_LEVEL;
179 ret->security_ex_data = NULL;
173 return (ret); 180 return (ret);
174} 181}
175 182