diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-20 09:42:01 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-20 09:42:01 +0000 |
commit | 9b5a3e63dab454339a506af49156cf13246b8433 (patch) | |
tree | c7dcbfbbfbea6ce1291aba5dc84fd6d3a22013c8 /lib/libssl/ssl.h | |
parent | 6c3d69ff34d5199c48c9088ab9e76a264d47a097 (diff) |
Add guards around SSL_get0_peername that were accidentally omitted.
Diffstat (limited to 'lib/libssl/ssl.h')
-rw-r--r-- | lib/libssl/ssl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index ea1b9993df4..88039c08d62 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.177 2020/09/19 10:17:56 tb Exp $ */ +/* $OpenBSD: ssl.h,v 1.178 2020/09/20 09:42:00 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1443,7 +1443,9 @@ int SSL_set_purpose(SSL *s, int purpose); int SSL_CTX_set_trust(SSL_CTX *s, int trust); int SSL_set_trust(SSL *s, int trust); int SSL_set1_host(SSL *s, const char *hostname); +#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) const char *SSL_get0_peername(SSL *s); +#endif X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx); int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); |