diff options
author | 2018-02-14 16:16:10 +0000 | |
---|---|---|
committer | 2018-02-14 16:16:10 +0000 | |
commit | 59c79d9de096a521127a1fe30ad5cf717a13f696 (patch) | |
tree | cc4e904fc3bfc7684e8ac575c365c155f16f2067 /lib/libssl/ssl_lib.c | |
parent | Some obvious freezero() conversions. (diff) | |
download | wireguard-openbsd-59c79d9de096a521127a1fe30ad5cf717a13f696.tar.xz wireguard-openbsd-59c79d9de096a521127a1fe30ad5cf717a13f696.zip |
Provide SSL_CTX_get0_param() and SSL_get0_param().
Some applications that use X509_VERIFY_PARAM expect these to exist, since
they're also part of the OpenSSL 1.0.2 API.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index c7ae2a9631a..9e3ef907290 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.172 2017/10/11 17:35:00 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.173 2018/02/14 16:16:10 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -469,12 +469,24 @@ SSL_set_trust(SSL *s, int trust) return (X509_VERIFY_PARAM_set_trust(s->param, trust)); } +X509_VERIFY_PARAM * +SSL_CTX_get0_param(SSL_CTX *ctx) +{ + return (ctx->param); +} + int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm) { return (X509_VERIFY_PARAM_set1(ctx->param, vpm)); } +X509_VERIFY_PARAM * +SSL_get0_param(SSL *ssl) +{ + return (ssl->param); +} + int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm) { |