Add "missing" function X509_STORE_set_verify_cb().
authorDr. Stephen Henson <steve@openssl.org>
Sun, 18 Oct 2009 13:24:16 +0000 (13:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 18 Oct 2009 13:24:16 +0000 (13:24 +0000)
crypto/x509/x509_lu.c
crypto/x509/x509_vfy.h

index e29c35c861f1050f86f5688f96e36f066667f8dd..fb7d23bbd0ade78ed981a8fd0564da9bad62422d 100644 (file)
@@ -695,5 +695,11 @@ int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *param)
        return X509_VERIFY_PARAM_set1(ctx->param, param);
        }
 
+void X509_STORE_set_verify_cb(X509_STORE *ctx,
+                                 int (*verify_cb)(int, X509_STORE_CTX *))
+       {
+       ctx->verify_cb = verify_cb;
+       }
+
 IMPLEMENT_STACK_OF(X509_LOOKUP)
 IMPLEMENT_STACK_OF(X509_OBJECT)
index 4e73806adc3c324b1556fe01f3368c9ee9cdb9b3..acb713a6e510045402a57e1eb4c5e8a8a0f3dfb5 100644 (file)
@@ -419,6 +419,9 @@ int X509_STORE_set_purpose(X509_STORE *ctx, int purpose);
 int X509_STORE_set_trust(X509_STORE *ctx, int trust);
 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 *));
+
 X509_STORE_CTX *X509_STORE_CTX_new(void);
 
 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);