Verify parameter retrieval functions.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 13 Dec 2013 13:59:53 +0000 (13:59 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 13 Dec 2013 15:29:26 +0000 (15:29 +0000)
New functions to retrieve internal pointers to X509_VERIFY_PARAM
for SSL_CTX and SSL structures.

ssl/ssl.h
ssl/ssl_lib.c

index efd491cb53c265a324afcdee5c4b3736ee73b9df..5e07f7eef6bee62c33dc01689965318e19ae6aae 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -2210,6 +2210,9 @@ 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);
 
+X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
+X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
+
 #ifndef OPENSSL_NO_SRP
 int SSL_CTX_set_srp_username(SSL_CTX *ctx,char *name);
 int SSL_CTX_set_srp_password(SSL_CTX *ctx,char *password);
index 2f2358b2494723797434241034d307f1f9438af8..87943c8315ffd4e10b73fadcef204637c0126a1a 100644 (file)
@@ -535,6 +535,16 @@ int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm)
        return X509_VERIFY_PARAM_set1(ssl->param, vpm);
        }
 
+X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx)
+       {
+       return ctx->param;
+       }
+
+X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl)
+       {
+       return ssl->param;
+       }
+
 void SSL_certs_clear(SSL *s)
        {
        ssl_cert_clear_certs(s->cert);