Update from 1.0.0-stable.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 30 Jun 2009 11:58:10 +0000 (11:58 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 30 Jun 2009 11:58:10 +0000 (11:58 +0000)
ssl/ssl.h
ssl/ssl_lib.c

index 09385a6..8f1cf1c 100644 (file)
--- 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);
index 7b911ae..49f8ca4 100644 (file)
@@ -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;