diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index a02ef94e2b..c50624a603 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.48 2022/01/05 20:18:19 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.49 2022/01/14 07:49:49 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,11 +297,9 @@ int X509_STORE_set_trust(X509_STORE *ctx, int trust); | |||
297 | int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); | 297 | int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); |
298 | X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx); | 298 | X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx); |
299 | 299 | ||
300 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
301 | typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *); | 300 | typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *); |
302 | 301 | ||
303 | X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *); | 302 | X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *); |
304 | #endif | ||
305 | 303 | ||
306 | void X509_STORE_set_verify_cb(X509_STORE *ctx, | 304 | void X509_STORE_set_verify_cb(X509_STORE *ctx, |
307 | int (*verify_cb)(int, X509_STORE_CTX *)); | 305 | int (*verify_cb)(int, X509_STORE_CTX *)); |
@@ -398,12 +396,10 @@ int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *); | |||
398 | void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, | 396 | void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, |
399 | int (*verify_cb)(int, X509_STORE_CTX *)); | 397 | int (*verify_cb)(int, X509_STORE_CTX *)); |
400 | 398 | ||
401 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
402 | typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *); | 399 | typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *); |
403 | 400 | ||
404 | void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify); | 401 | void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify); |
405 | X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx); | 402 | X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx); |
406 | #endif | ||
407 | #define X509_STORE_set_verify_func(ctx, func) \ | 403 | #define X509_STORE_set_verify_func(ctx, func) \ |
408 | X509_STORE_set_verify((ctx), (func)) | 404 | X509_STORE_set_verify((ctx), (func)) |
409 | 405 | ||