diff options
author | 2020-09-19 10:17:56 +0000 | |
---|---|---|
committer | 2020-09-19 10:17:56 +0000 | |
commit | 970f988907d667766d88da8c3be79fdcaa98ee41 (patch) | |
tree | 555df3866ea26c911e8496e80c331b9f860a5cbb /lib/libssl/ssl_lib.c | |
parent | Prepare to provide stubbed out versions for reading/writing 0-RTT data (diff) | |
download | wireguard-openbsd-970f988907d667766d88da8c3be79fdcaa98ee41.tar.xz wireguard-openbsd-970f988907d667766d88da8c3be79fdcaa98ee41.zip |
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
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index b04b67df41c..65d5614bfbf 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.232 2020/09/19 10:12:06 tb Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.233 2020/09/19 10:17:56 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -470,6 +470,12 @@ SSL_set1_host(SSL *s, const char *hostname) return X509_VERIFY_PARAM_set1_host(s->param, hostname, 0); } +const char * +SSL_get0_peername(SSL *s) +{ + return X509_VERIFY_PARAM_get0_peername(s->param); +} + X509_VERIFY_PARAM * SSL_CTX_get0_param(SSL_CTX *ctx) { |