New functions to set lookup_crls callback and to retrieve internal X509_STORE
authorDr. Stephen Henson <steve@openssl.org>
Tue, 27 Nov 2012 23:47:48 +0000 (23:47 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 17 Jan 2013 16:32:33 +0000 (16:32 +0000)
from X509_STORE_CTX.

CHANGES
crypto/x509/x509_lu.c
crypto/x509/x509_vfy.h

diff --git a/CHANGES b/CHANGES
index c4c97a8636a81eb099ec357496ee4d8902ef2531..f6fc95e224a40a627f1c5a2c59c1b2797234110b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,10 @@
 
  Changes between 1.0.1 and 1.0.2 [xx XXX xxxx]
 
+  *) New functions to set lookup_crls function and to retrieve
+     X509_STORE from X509_STORE_CTX.
+     [Steve Henson]
+
   *) Print out deprecated issuer and subject unique ID fields in
      certificates.
      [Steve Henson]
index 72121f6beca8630bacb56e8e0ea733ac767ea773..cce90848a260a6f1c3d38421d92ea94ccdbee6bd 100644 (file)
@@ -725,5 +725,16 @@ void X509_STORE_set_verify_cb(X509_STORE *ctx,
        ctx->verify_cb = verify_cb;
        }
 
+void X509_STORE_set_lookup_crls_cb(X509_STORE *ctx,
+               STACK_OF(X509_CRL)* (*cb)(X509_STORE_CTX *ctx, X509_NAME *nm))
+       {
+       ctx->lookup_crls = cb;
+       }
+
+X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx)
+       {
+       return ctx->ctx;
+       }
+
 IMPLEMENT_STACK_OF(X509_LOOKUP)
 IMPLEMENT_STACK_OF(X509_OBJECT)
index 5703045216b87cc52fc93d8ca0766a5cd0f95689..6ba9846489d87207add5f904aa7070339b570acb 100644 (file)
@@ -451,6 +451,9 @@ int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);
 void X509_STORE_set_verify_cb(X509_STORE *ctx,
                                  int (*verify_cb)(int, X509_STORE_CTX *));
 
+void X509_STORE_set_lookup_crls_cb(X509_STORE *ctx,
+               STACK_OF(X509_CRL)* (*cb)(X509_STORE_CTX *ctx, X509_NAME *nm));
+
 X509_STORE_CTX *X509_STORE_CTX_new(void);
 
 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
@@ -461,6 +464,8 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,
 void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
 void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);
 
+X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);
+
 X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m);
 
 X509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);