From 8096e1d55140f29558d9df8af99130f7301e88f7 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 28 Jun 2022 20:42:22 +0000 Subject: [PATCH] Set up the default callback in SSL_CERT ok beck jsing sthen --- lib/libssl/ssl_cert.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } -- 2.20.1