summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_txt.c')
-rw-r--r--src/lib/libcrypto/x509/x509_txt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c
index 27f6c7176a..509948618e 100644
--- a/src/lib/libcrypto/x509/x509_txt.c
+++ b/src/lib/libcrypto/x509/x509_txt.c
@@ -69,11 +69,10 @@
69#include <openssl/objects.h> 69#include <openssl/objects.h>
70 70
71const char *X509_verify_cert_error_string(long n) 71const char *X509_verify_cert_error_string(long n)
72 { 72{
73 static char buf[100]; 73 static char buf[100];
74 74
75 switch ((int)n) 75 switch ((int)n) {
76 {
77 case X509_V_OK: 76 case X509_V_OK:
78 return("ok"); 77 return("ok");
79 case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: 78 case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
@@ -187,7 +186,7 @@ const char *X509_verify_cert_error_string(long n)
187 default: 186 default:
188 (void) snprintf(buf,sizeof buf,"error number %ld",n); 187 (void) snprintf(buf,sizeof buf,"error number %ld",n);
189 return(buf); 188 return(buf);
190 }
191 } 189 }
190}
192 191
193 192