summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2020-09-20 09:42:00 +0000
committertb <>2020-09-20 09:42:00 +0000
commit2c31c1e37e57201209afec96b54cdeb030f05c73 (patch)
treefb85711200dc8be8d49afa5f74177a030a6c27d2 /src
parent71ab2c82f3894c93b4fcf5265967efcf76bf9883 (diff)
downloadopenbsd-2c31c1e37e57201209afec96b54cdeb030f05c73.tar.gz
openbsd-2c31c1e37e57201209afec96b54cdeb030f05c73.tar.bz2
openbsd-2c31c1e37e57201209afec96b54cdeb030f05c73.zip
Add guards around SSL_get0_peername that were accidentally omitted.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index ea1b9993df..88039c08d6 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.177 2020/09/19 10:17:56 tb Exp $ */ 1/* $OpenBSD: ssl.h,v 1.178 2020/09/20 09:42:00 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 *
@@ -1443,7 +1443,9 @@ int SSL_set_purpose(SSL *s, int purpose);
1443int SSL_CTX_set_trust(SSL_CTX *s, int trust); 1443int SSL_CTX_set_trust(SSL_CTX *s, int trust);
1444int SSL_set_trust(SSL *s, int trust); 1444int SSL_set_trust(SSL *s, int trust);
1445int SSL_set1_host(SSL *s, const char *hostname); 1445int SSL_set1_host(SSL *s, const char *hostname);
1446#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)
1446const char *SSL_get0_peername(SSL *s); 1447const char *SSL_get0_peername(SSL *s);
1448#endif
1447 1449
1448X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx); 1450X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
1449int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); 1451int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);