aboutsummaryrefslogtreecommitdiff
path: root/include/openssl/x509_vfy.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-29 17:44:46 +0100
committerMatt Caswell <matt@openssl.org>2016-04-29 23:13:58 +0100
commit7cafbb4bd373f024c4900dcaa71aaf626c2ddbae (patch)
tree8d72c244a980735821ba52c0fde37a88d58abe3c /include/openssl/x509_vfy.h
parent77076dc944f76e821e4eae3a6563b853ce00c0ed (diff)
downloadopenssl-7cafbb4bd373f024c4900dcaa71aaf626c2ddbae.zip
openssl-7cafbb4bd373f024c4900dcaa71aaf626c2ddbae.tar.gz
openssl-7cafbb4bd373f024c4900dcaa71aaf626c2ddbae.tar.bz2
Fix some X509_STORE macros
Some X509_STORE macros do not work since the type was made opaque. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'include/openssl/x509_vfy.h')
-rw-r--r--include/openssl/x509_vfy.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/openssl/x509_vfy.h b/include/openssl/x509_vfy.h
index fc6e389..1c86d31 100644
--- a/include/openssl/x509_vfy.h
+++ b/include/openssl/x509_vfy.h
@@ -104,8 +104,15 @@ DEFINE_STACK_OF(X509_VERIFY_PARAM)
int X509_STORE_set_depth(X509_STORE *store, int depth);
-# define X509_STORE_set_verify_cb_func(ctx,func) ((ctx)->verify_cb=(func))
-# define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func))
+# define X509_STORE_set_verify_cb_func(ctx,func) \
+ X509_STORE_set_verify_cb((ctx),(func))
+
+typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);
+typedef int (*X509_STORE_CTX_verify)(X509_STORE_CTX *);
+
+void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify verify);
+#define X509_STORE_set_verify_func(ctx, func) \
+ X509_STORE_set_verify((ctx),(func))
void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
@@ -314,8 +321,6 @@ X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);
X509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx);
void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
-typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);
-typedef int (*X509_STORE_CTX_verify)(X509_STORE_CTX *);
void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,
X509_STORE_CTX_verify_cb verify);
X509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx);