From ccf117510d3f79770a4dc0fc92e7332b83c02dc8 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 30 Jun 2009 11:58:10 +0000 Subject: [PATCH] Update from 1.0.0-stable. --- ssl/ssl.h | 3 +++ ssl/ssl_lib.c | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/ssl/ssl.h b/ssl/ssl.h index 09385a6603..8f1cf1cc8f 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h @@ -1580,6 +1580,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_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); +int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm); + void SSL_free(SSL *ssl); int SSL_accept(SSL *ssl); int SSL_connect(SSL *ssl); diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 7b911ae1ea..49f8ca46d1 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -486,6 +486,16 @@ int SSL_set_trust(SSL *s, int trust) return X509_VERIFY_PARAM_set_trust(s->param, trust); } +int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm) + { + return X509_VERIFY_PARAM_set1(ctx->param, vpm); + } + +int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm) + { + return X509_VERIFY_PARAM_set1(ssl->param, vpm); + } + void SSL_free(SSL *s) { int i; -- 2.25.1