diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 15 |
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); | |||
518 | int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); | 518 | int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); |
519 | void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); | 519 | void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); |
520 | int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); | 520 | int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); |
521 | #if defined(LIBRESSL_NEW_API) | ||
522 | void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth); | ||
523 | #endif | ||
521 | X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); | 524 | X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); |
525 | #if defined(LIBRESSL_NEW_API) | ||
526 | void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x); | ||
527 | #endif | ||
522 | X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx); | 528 | X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx); |
523 | X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx); | 529 | X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx); |
524 | X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx); | 530 | X509_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, | |||
534 | void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags); | 540 | void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags); |
535 | void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags, | 541 | void 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) | ||
544 | void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); | ||
545 | int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *); | ||
546 | void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, | ||
547 | int (*verify)(X509_STORE_CTX *)); | ||
548 | int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *); | ||
549 | #endif | ||
537 | void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, | 550 | void 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 | ||