From 4dd3ba27be35bf5c0061eca0bcd836ba0ba1802e Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 29 Nov 2022 07:08:41 +0000 Subject: Add missing X509_V_ERR_UNSPECIFIED case --- src/lib/libcrypto/x509/x509_txt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c index 58c0566686..2a4e49df10 100644 --- a/src/lib/libcrypto/x509/x509_txt.c +++ b/src/lib/libcrypto/x509/x509_txt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_txt.c,v 1.23 2022/11/29 07:06:12 tb Exp $ */ +/* $OpenBSD: x509_txt.c,v 1.24 2022/11/29 07:08:41 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -73,6 +73,8 @@ X509_verify_cert_error_string(long n) switch ((int)n) { case X509_V_OK: return "ok"; + case X509_V_ERR_UNSPECIFIED: + return "Unspecified certificate verification error"; case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: return "unable to get issuer certificate"; case X509_V_ERR_UNABLE_TO_GET_CRL: -- cgit v1.2.3-55-g6feb