From 48c471e6a98e03acff50a033e9a20091e4842f90 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 24 Oct 2021 13:48:15 +0000 Subject: Prepare to provide X509_STORE_CTX_get_num_untrusted() ok beck jsing --- src/lib/libcrypto/x509/x509_vfy.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/x509_vfy.c') 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 @@ -/* $OpenBSD: x509_vfy.c,v 1.89 2021/09/03 08:58:53 beck Exp $ */ +/* $OpenBSD: x509_vfy.c,v 1.90 2021/10/24 13:48:15 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2505,6 +2505,12 @@ X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx) return ctx->explicit_policy; } +int +X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx) +{ + return ctx->last_untrusted; /* XXX */ +} + int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name) { -- cgit v1.2.3-55-g6feb