summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-06-28 20:42:23 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-06-28 20:42:23 +0000
commit4117fff0bbceca9a42ce05d60f48af03898c4760 (patch)
treeda59d43d1694324f54ed8d06c718e24d1f8d168e
parentdfd8064e30433d4371b5737d0fde9a7c15e741f7 (diff)
Set up the default callback in SSL_CERT
ok beck jsing sthen
-rw-r--r--lib/libssl/ssl_cert.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libssl/ssl_cert.c b/lib/libssl/ssl_cert.c
index 30e99ad184e..b5c9fe5dce1 100644
--- a/lib/libssl/ssl_cert.c
+++ b/lib/libssl/ssl_cert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_cert.c,v 1.95 2022/02/05 14:54:10 jsing Exp $ */
+/* $OpenBSD: ssl_cert.c,v 1.96 2022/06/28 20:42:22 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -170,6 +170,13 @@ ssl_cert_new(void)
}
ret->key = &(ret->pkeys[SSL_PKEY_RSA]);
ret->references = 1;
+#if defined(LIBRESSL_HAS_SECURITY_LEVEL)
+ ret->security_cb = ssl_security_default_cb;
+#else
+ ret->security_cb = ssl_security_dummy_cb;
+#endif
+ ret->security_level = OPENSSL_TLS_SECURITY_LEVEL;
+ ret->security_ex_data = NULL;
return (ret);
}