diff options
| author | tb <> | 2021-10-24 13:48:15 +0000 |
|---|---|---|
| committer | tb <> | 2021-10-24 13:48:15 +0000 |
| commit | 584ceaf1d5532aff2e85fe2fd8f87a29c3cf5c94 (patch) | |
| tree | 34d202c7d5ae0f1660adefd5960be3c5fa65e314 /src | |
| parent | f9a9640e5e63fa197c679f6a490666ab5a4fe1fb (diff) | |
| download | openbsd-584ceaf1d5532aff2e85fe2fd8f87a29c3cf5c94.tar.gz openbsd-584ceaf1d5532aff2e85fe2fd8f87a29c3cf5c94.tar.bz2 openbsd-584ceaf1d5532aff2e85fe2fd8f87a29c3cf5c94.zip | |
Prepare to provide X509_STORE_CTX_get_num_untrusted()
ok beck jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index 2f69017e96..17dfb52c62 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_vfy.c,v 1.89 2021/09/03 08:58:53 beck Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.90 2021/10/24 13:48:15 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 | * |
| @@ -2506,6 +2506,12 @@ X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx) | |||
| 2506 | } | 2506 | } |
| 2507 | 2507 | ||
| 2508 | int | 2508 | int |
| 2509 | X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx) | ||
| 2510 | { | ||
| 2511 | return ctx->last_untrusted; /* XXX */ | ||
| 2512 | } | ||
| 2513 | |||
| 2514 | int | ||
| 2509 | X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name) | 2515 | X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name) |
| 2510 | { | 2516 | { |
| 2511 | const X509_VERIFY_PARAM *param; | 2517 | const X509_VERIFY_PARAM *param; |
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index e80e7de45e..c6adb41b3d 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.35 2021/10/24 09:27:48 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.36 2021/10/24 13:48:15 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 | * |
| @@ -539,6 +539,9 @@ void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, | |||
| 539 | 539 | ||
| 540 | X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); | 540 | X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); |
| 541 | int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); | 541 | int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); |
| 542 | #if defined(LIBRESSL_NEW_API) | ||
| 543 | int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); | ||
| 544 | #endif | ||
| 542 | 545 | ||
| 543 | X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); | 546 | X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); |
| 544 | void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param); | 547 | void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param); |
