diff options
author | tb <> | 2020-09-20 09:42:00 +0000 |
---|---|---|
committer | tb <> | 2020-09-20 09:42:00 +0000 |
commit | 2c31c1e37e57201209afec96b54cdeb030f05c73 (patch) | |
tree | fb85711200dc8be8d49afa5f74177a030a6c27d2 /src/lib | |
parent | 71ab2c82f3894c93b4fcf5265967efcf76bf9883 (diff) | |
download | openbsd-2c31c1e37e57201209afec96b54cdeb030f05c73.tar.gz openbsd-2c31c1e37e57201209afec96b54cdeb030f05c73.tar.bz2 openbsd-2c31c1e37e57201209afec96b54cdeb030f05c73.zip |
Add guards around SSL_get0_peername that were accidentally omitted.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl.h | 4 |
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); | |||
1443 | int SSL_CTX_set_trust(SSL_CTX *s, int trust); | 1443 | int SSL_CTX_set_trust(SSL_CTX *s, int trust); |
1444 | int SSL_set_trust(SSL *s, int trust); | 1444 | int SSL_set_trust(SSL *s, int trust); |
1445 | int SSL_set1_host(SSL *s, const char *hostname); | 1445 | int SSL_set1_host(SSL *s, const char *hostname); |
1446 | #if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) | ||
1446 | const char *SSL_get0_peername(SSL *s); | 1447 | const char *SSL_get0_peername(SSL *s); |
1448 | #endif | ||
1447 | 1449 | ||
1448 | X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx); | 1450 | X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx); |
1449 | int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); | 1451 | int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); |