summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_err.c
diff options
context:
space:
mode:
authortedu <>2014-04-18 01:59:00 +0000
committertedu <>2014-04-18 01:59:00 +0000
commit513bec93d6747369737d3a618ef58a44410059f6 (patch)
tree88ee4831e2437f9075e786ffb662bb05fe0e3df6 /src/lib/libcrypto/x509/x509_err.c
parent1fca82b89342502ff32bda59bd067e303ff9d5ab (diff)
downloadopenbsd-513bec93d6747369737d3a618ef58a44410059f6.tar.gz
openbsd-513bec93d6747369737d3a618ef58a44410059f6.tar.bz2
openbsd-513bec93d6747369737d3a618ef58a44410059f6.zip
blunt force knf
Diffstat (limited to 'src/lib/libcrypto/x509/x509_err.c')
-rw-r--r--src/lib/libcrypto/x509/x509_err.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/libcrypto/x509/x509_err.c b/src/lib/libcrypto/x509/x509_err.c
index a01402f416..ab5e8aaea2 100644
--- a/src/lib/libcrypto/x509/x509_err.c
+++ b/src/lib/libcrypto/x509/x509_err.c
@@ -69,7 +69,7 @@
69#define ERR_REASON(reason) ERR_PACK(ERR_LIB_X509,0,reason) 69#define ERR_REASON(reason) ERR_PACK(ERR_LIB_X509,0,reason)
70 70
71static ERR_STRING_DATA X509_str_functs[]= 71static ERR_STRING_DATA X509_str_functs[]=
72 { 72{
73{ERR_FUNC(X509_F_ADD_CERT_DIR), "ADD_CERT_DIR"}, 73{ERR_FUNC(X509_F_ADD_CERT_DIR), "ADD_CERT_DIR"},
74{ERR_FUNC(X509_F_BY_FILE_CTRL), "BY_FILE_CTRL"}, 74{ERR_FUNC(X509_F_BY_FILE_CTRL), "BY_FILE_CTRL"},
75{ERR_FUNC(X509_F_CHECK_POLICY), "CHECK_POLICY"}, 75{ERR_FUNC(X509_F_CHECK_POLICY), "CHECK_POLICY"},
@@ -116,10 +116,10 @@ static ERR_STRING_DATA X509_str_functs[]=
116{ERR_FUNC(X509_F_X509_TRUST_SET), "X509_TRUST_set"}, 116{ERR_FUNC(X509_F_X509_TRUST_SET), "X509_TRUST_set"},
117{ERR_FUNC(X509_F_X509_VERIFY_CERT), "X509_verify_cert"}, 117{ERR_FUNC(X509_F_X509_VERIFY_CERT), "X509_verify_cert"},
118{0,NULL} 118{0,NULL}
119 }; 119};
120 120
121static ERR_STRING_DATA X509_str_reasons[]= 121static ERR_STRING_DATA X509_str_reasons[]=
122 { 122{
123{ERR_REASON(X509_R_BAD_X509_FILETYPE) ,"bad x509 filetype"}, 123{ERR_REASON(X509_R_BAD_X509_FILETYPE) ,"bad x509 filetype"},
124{ERR_REASON(X509_R_BASE64_DECODE_ERROR) ,"base64 decode error"}, 124{ERR_REASON(X509_R_BASE64_DECODE_ERROR) ,"base64 decode error"},
125{ERR_REASON(X509_R_CANT_CHECK_DH_KEY) ,"cant check dh key"}, 125{ERR_REASON(X509_R_CANT_CHECK_DH_KEY) ,"cant check dh key"},
@@ -147,18 +147,17 @@ static ERR_STRING_DATA X509_str_reasons[]=
147{ERR_REASON(X509_R_WRONG_LOOKUP_TYPE) ,"wrong lookup type"}, 147{ERR_REASON(X509_R_WRONG_LOOKUP_TYPE) ,"wrong lookup type"},
148{ERR_REASON(X509_R_WRONG_TYPE) ,"wrong type"}, 148{ERR_REASON(X509_R_WRONG_TYPE) ,"wrong type"},
149{0,NULL} 149{0,NULL}
150 }; 150};
151 151
152#endif 152#endif
153 153
154void ERR_load_X509_strings(void) 154void ERR_load_X509_strings(void)
155 { 155{
156#ifndef OPENSSL_NO_ERR 156#ifndef OPENSSL_NO_ERR
157 157
158 if (ERR_func_error_string(X509_str_functs[0].error) == NULL) 158 if (ERR_func_error_string(X509_str_functs[0].error) == NULL) {
159 {
160 ERR_load_strings(0,X509_str_functs); 159 ERR_load_strings(0,X509_str_functs);
161 ERR_load_strings(0,X509_str_reasons); 160 ERR_load_strings(0,X509_str_reasons);
162 }
163#endif
164 } 161 }
162#endif
163}