diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509/x509_txt.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c index 129757494c..8485aeb5d1 100644 --- a/src/lib/libcrypto/x509/x509_txt.c +++ b/src/lib/libcrypto/x509/x509_txt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_txt.c,v 1.21 2022/11/14 17:48:50 beck Exp $ */ | 1 | /* $OpenBSD: x509_txt.c,v 1.22 2022/11/29 07:03:40 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 | * |
@@ -70,8 +70,6 @@ | |||
70 | const char * | 70 | const char * |
71 | X509_verify_cert_error_string(long n) | 71 | X509_verify_cert_error_string(long n) |
72 | { | 72 | { |
73 | static char buf[100]; | ||
74 | |||
75 | switch ((int)n) { | 73 | switch ((int)n) { |
76 | case X509_V_OK: | 74 | case X509_V_OK: |
77 | return("ok"); | 75 | return("ok"); |
@@ -199,8 +197,7 @@ X509_verify_cert_error_string(long n) | |||
199 | return("CA signature digest algorithm too weak"); | 197 | return("CA signature digest algorithm too weak"); |
200 | 198 | ||
201 | default: | 199 | default: |
202 | (void) snprintf(buf, sizeof buf, "error number %ld", n); | 200 | return("Unknown certificate verification error"); |
203 | return(buf); | ||
204 | } | 201 | } |
205 | } | 202 | } |
206 | LCRYPTO_ALIAS(X509_verify_cert_error_string) | 203 | LCRYPTO_ALIAS(X509_verify_cert_error_string) |