summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index 34fb913350..a02ef94e2b 100644
--- a/src/lib/libcrypto/x509/x509_vfy.h
+++ b/src/lib/libcrypto/x509/x509_vfy.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.h,v 1.47 2021/11/19 16:35:10 schwarze Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.48 2022/01/05 20:18:19 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -297,6 +297,12 @@ int X509_STORE_set_trust(X509_STORE *ctx, int trust);
297int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); 297int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);
298X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx); 298X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);
299 299
300#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL)
301typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);
302
303X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *);
304#endif
305
300void X509_STORE_set_verify_cb(X509_STORE *ctx, 306void X509_STORE_set_verify_cb(X509_STORE *ctx,
301 int (*verify_cb)(int, X509_STORE_CTX *)); 307 int (*verify_cb)(int, X509_STORE_CTX *));
302#define X509_STORE_set_verify_cb_func(ctx, func) \ 308#define X509_STORE_set_verify_cb_func(ctx, func) \
@@ -388,12 +394,19 @@ void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk)
388int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *); 394int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *);
389void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, 395void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,
390 int (*verify)(X509_STORE_CTX *)); 396 int (*verify)(X509_STORE_CTX *));
391#define X509_STORE_set_verify_func(ctx, func) \
392 X509_STORE_set_verify((ctx), (func))
393int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *); 397int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *);
394void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, 398void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,
395 int (*verify_cb)(int, X509_STORE_CTX *)); 399 int (*verify_cb)(int, X509_STORE_CTX *));
396 400
401#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL)
402typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);
403
404void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify);
405X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);
406#endif
407#define X509_STORE_set_verify_func(ctx, func) \
408 X509_STORE_set_verify((ctx), (func))
409
397X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); 410X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);
398int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); 411int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);
399int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); 412int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);