summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorbeck <>2021-10-23 20:42:50 +0000
committerbeck <>2021-10-23 20:42:50 +0000
commitdf7c39071574d0006c0a7c83316d63c62f850267 (patch)
tree29525b524ab0802402e6cb477926f195db081bea /src/lib/libssl/ssl_lib.c
parentc94ab0a63c0ba4be1075d8ab194487b8cd43ab66 (diff)
downloadopenbsd-df7c39071574d0006c0a7c83316d63c62f850267.tar.gz
openbsd-df7c39071574d0006c0a7c83316d63c62f850267.tar.bz2
openbsd-df7c39071574d0006c0a7c83316d63c62f850267.zip
Add SSL_get0_verified_chain - needed by some new stuff
symbol will be exposed with tb@'s forthcoming bump ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 3c7bdfd265..cfd5c9bfb8 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.274 2021/10/23 16:29:15 beck Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.275 2021/10/23 20:42:50 beck 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 *
@@ -900,6 +900,12 @@ SSL_get_peer_cert_chain(const SSL *s)
900 return (r); 900 return (r);
901} 901}
902 902
903STACK_OF(X509) *
904SSL_get0_verified_chain(const SSL *s)
905{
906 return s->internal->verified_chain;
907}
908
903/* 909/*
904 * Now in theory, since the calling process own 't' it should be safe to 910 * Now in theory, since the calling process own 't' it should be safe to
905 * modify. We need to be able to read f without being hassled 911 * modify. We need to be able to read f without being hassled