From: tb Date: Tue, 28 Jun 2022 20:43:21 +0000 (+0000) Subject: Copy the security level stuff in ssl_cert_dup() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=257dedcc9cf6d6b8f2f1e9a5b3afc4cb229ba40a;p=openbsd Copy the security level stuff in ssl_cert_dup() ok beck jsing sthen --- diff --git a/lib/libssl/ssl_cert.c b/lib/libssl/ssl_cert.c index b5c9fe5dce1..246a0101801 100644 --- a/lib/libssl/ssl_cert.c +++ b/lib/libssl/ssl_cert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_cert.c,v 1.96 2022/06/28 20:42:22 tb Exp $ */ +/* $OpenBSD: ssl_cert.c,v 1.97 2022/06/28 20:43:21 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -253,6 +253,10 @@ ssl_cert_dup(SSL_CERT *cert) } } + ret->security_cb = cert->security_cb; + ret->security_level = cert->security_level; + ret->security_ex_data = cert->security_ex_data; + /* * ret->extra_certs *should* exist, but currently the own certificate * chain is held inside SSL_CTX