diff options
author | tb <> | 2021-10-24 13:48:15 +0000 |
---|---|---|
committer | tb <> | 2021-10-24 13:48:15 +0000 |
commit | 48c471e6a98e03acff50a033e9a20091e4842f90 (patch) | |
tree | 34d202c7d5ae0f1660adefd5960be3c5fa65e314 /src/lib/libcrypto/x509/x509_vfy.c | |
parent | 4a45052f637f8486f2bfc31e5cd050e49f7e0064 (diff) | |
download | openbsd-48c471e6a98e03acff50a033e9a20091e4842f90.tar.gz openbsd-48c471e6a98e03acff50a033e9a20091e4842f90.tar.bz2 openbsd-48c471e6a98e03acff50a033e9a20091e4842f90.zip |
Prepare to provide X509_STORE_CTX_get_num_untrusted()
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 8 |
1 files changed, 7 insertions, 1 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; |