diff options
author | tb <> | 2022-06-28 20:43:21 +0000 |
---|---|---|
committer | tb <> | 2022-06-28 20:43:21 +0000 |
commit | a85d7465f2a36f6ef440015545b84213af5aa5a1 (patch) | |
tree | 2096ec2212055239f6abb6a406982268384edb55 /src | |
parent | b91eb75a78f6ca77c01d62e2ec3840d638437bc6 (diff) | |
download | openbsd-a85d7465f2a36f6ef440015545b84213af5aa5a1.tar.gz openbsd-a85d7465f2a36f6ef440015545b84213af5aa5a1.tar.bz2 openbsd-a85d7465f2a36f6ef440015545b84213af5aa5a1.zip |
Copy the security level stuff in ssl_cert_dup()
ok beck jsing sthen
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/ssl_cert.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c index b5c9fe5dce..246a010180 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.96 2022/06/28 20:42:22 tb Exp $ */ | 1 | /* $OpenBSD: ssl_cert.c,v 1.97 2022/06/28 20:43:21 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 | * |
@@ -253,6 +253,10 @@ ssl_cert_dup(SSL_CERT *cert) | |||
253 | } | 253 | } |
254 | } | 254 | } |
255 | 255 | ||
256 | ret->security_cb = cert->security_cb; | ||
257 | ret->security_level = cert->security_level; | ||
258 | ret->security_ex_data = cert->security_ex_data; | ||
259 | |||
256 | /* | 260 | /* |
257 | * ret->extra_certs *should* exist, but currently the own certificate | 261 | * ret->extra_certs *should* exist, but currently the own certificate |
258 | * chain is held inside SSL_CTX | 262 | * chain is held inside SSL_CTX |