diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index 676145cca7..61ea11b71a 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.44 2021/10/31 16:51:16 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.45 2021/11/01 08:14:36 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 | * |
| @@ -201,10 +201,6 @@ struct x509_store_st { | |||
| 201 | 201 | ||
| 202 | int X509_STORE_set_depth(X509_STORE *store, int depth); | 202 | int X509_STORE_set_depth(X509_STORE *store, int depth); |
| 203 | 203 | ||
| 204 | #if !defined(LIBRESSL_NEW_API) | ||
| 205 | #define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func)) | ||
| 206 | #endif | ||
| 207 | |||
| 208 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 204 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 209 | /* This is the functions plus an instance of the local variables. */ | 205 | /* This is the functions plus an instance of the local variables. */ |
| 210 | struct x509_lookup_st { | 206 | struct x509_lookup_st { |
| @@ -425,10 +421,8 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth); | |||
| 425 | | X509_V_FLAG_INHIBIT_ANY \ | 421 | | X509_V_FLAG_INHIBIT_ANY \ |
| 426 | | X509_V_FLAG_INHIBIT_MAP) | 422 | | X509_V_FLAG_INHIBIT_MAP) |
| 427 | 423 | ||
| 428 | #if defined(LIBRESSL_NEW_API) | ||
| 429 | X509_OBJECT *X509_OBJECT_new(void); | 424 | X509_OBJECT *X509_OBJECT_new(void); |
| 430 | void X509_OBJECT_free(X509_OBJECT *a); | 425 | void X509_OBJECT_free(X509_OBJECT *a); |
| 431 | #endif | ||
| 432 | int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type, | 426 | int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type, |
| 433 | X509_NAME *name); | 427 | X509_NAME *name); |
| 434 | X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, | 428 | X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, |
| @@ -492,10 +486,8 @@ int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x); | |||
| 492 | int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type, | 486 | int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type, |
| 493 | X509_NAME *name, X509_OBJECT *ret); | 487 | X509_NAME *name, X509_OBJECT *ret); |
| 494 | #define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject | 488 | #define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject |
| 495 | #if defined(LIBRESSL_NEW_API) | ||
| 496 | X509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs, | 489 | X509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs, |
| 497 | X509_LOOKUP_TYPE type, X509_NAME *name); | 490 | X509_LOOKUP_TYPE type, X509_NAME *name); |
| 498 | #endif | ||
| 499 | 491 | ||
| 500 | int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, | 492 | int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, |
| 501 | long argl, char **ret); | 493 | long argl, char **ret); |
| @@ -530,13 +522,9 @@ void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx); | |||
| 530 | int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); | 522 | int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); |
| 531 | void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); | 523 | void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); |
| 532 | int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); | 524 | int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); |
| 533 | #if defined(LIBRESSL_NEW_API) | ||
| 534 | void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth); | 525 | void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth); |
| 535 | #endif | ||
| 536 | X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); | 526 | X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); |
| 537 | #if defined(LIBRESSL_NEW_API) | ||
| 538 | void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x); | 527 | void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x); |
| 539 | #endif | ||
| 540 | X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx); | 528 | X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx); |
| 541 | 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); |
| 542 | 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); |
| @@ -552,7 +540,6 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, | |||
| 552 | 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); |
| 553 | 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, |
| 554 | time_t t); | 542 | time_t t); |
| 555 | #if defined(LIBRESSL_NEW_API) | ||
| 556 | void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); | 543 | void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); |
| 557 | int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *); | 544 | int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *); |
| 558 | void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, | 545 | void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, |
| @@ -560,15 +547,12 @@ void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, | |||
| 560 | #define X509_STORE_set_verify_func(ctx, func) \ | 547 | #define X509_STORE_set_verify_func(ctx, func) \ |
| 561 | X509_STORE_set_verify((ctx), (func)) | 548 | X509_STORE_set_verify((ctx), (func)) |
| 562 | int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *); | 549 | int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *); |
| 563 | #endif | ||
| 564 | void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, | 550 | void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, |
| 565 | int (*verify_cb)(int, X509_STORE_CTX *)); | 551 | int (*verify_cb)(int, X509_STORE_CTX *)); |
| 566 | 552 | ||
| 567 | X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); | 553 | X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); |
| 568 | int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); | 554 | int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); |
| 569 | #if defined(LIBRESSL_NEW_API) | ||
| 570 | int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); | 555 | int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); |
| 571 | #endif | ||
| 572 | 556 | ||
| 573 | X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); | 557 | X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); |
| 574 | void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param); | 558 | void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param); |
