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.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index c6adb41b3d..abb1389db6 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.36 2021/10/24 13:48:15 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.37 2021/10/24 13:52:13 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 *
@@ -518,7 +518,13 @@ void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx);
518int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); 518int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
519void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); 519void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
520int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); 520int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
521#if defined(LIBRESSL_NEW_API)
522void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);
523#endif
521X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); 524X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
525#if defined(LIBRESSL_NEW_API)
526void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x);
527#endif
522X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx); 528X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);
523X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx); 529X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);
524X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx); 530X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx);
@@ -534,6 +540,13 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
534void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags); 540void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);
535void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags, 541void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,
536 time_t t); 542 time_t t);
543#if defined(LIBRESSL_NEW_API)
544void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
545int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *);
546void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,
547 int (*verify)(X509_STORE_CTX *));
548int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *);
549#endif
537void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, 550void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,
538 int (*verify_cb)(int, X509_STORE_CTX *)); 551 int (*verify_cb)(int, X509_STORE_CTX *));
539 552