From ecd45aad00b8302c0634f02c3fe281a9e68c54ed Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 19 Sep 2020 10:17:56 +0000 Subject: Prepare to provide SSL_get0_peername This is a convenience reacharound to libcrypto that trivially wraps X509_VERIFY_PARAM_get0_peername(). It is used by unbound 1.11.0 for better logging. As it's part of the API that landed with OpenSSL's DANE, more recent postfix snapshots use it as well. ok beck inoguchi jsing --- src/lib/libssl/ssl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl.h') diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 093c4bde2d..ea1b9993df 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.176 2020/09/19 10:12:06 tb Exp $ */ +/* $OpenBSD: ssl.h,v 1.177 2020/09/19 10:17:56 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1443,6 +1443,7 @@ 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); +const char *SSL_get0_peername(SSL *s); X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx); int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); -- cgit v1.2.3-55-g6feb