summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/ssl_lib.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 16f2b54637..79021d7e0b 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.174 2018/02/14 17:08:44 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.175 2018/02/17 15:13:12 jsing 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 *
@@ -2877,6 +2877,15 @@ SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store)
2877 ctx->cert_store = store; 2877 ctx->cert_store = store;
2878} 2878}
2879 2879
2880X509 *
2881SSL_CTX_get0_certificate(const SSL_CTX *ctx)
2882{
2883 if (ctx->internal->cert == NULL)
2884 return NULL;
2885
2886 return ctx->internal->cert->key->x509;
2887}
2888
2880int 2889int
2881SSL_want(const SSL *s) 2890SSL_want(const SSL *s)
2882{ 2891{