summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1_err.c
diff options
context:
space:
mode:
authortedu <>2014-04-18 00:10:08 +0000
committertedu <>2014-04-18 00:10:08 +0000
commit07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d (patch)
tree6327d50d69a1982f840dc68fe928ea459e2c41e0 /src/lib/libcrypto/asn1/asn1_err.c
parent288a9e368d9d4a72792b12a00ad69e3592d94073 (diff)
downloadopenbsd-07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d.tar.gz
openbsd-07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d.tar.bz2
openbsd-07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d.zip
putting most of the braces in the right column is the very least we can do.
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_err.c')
-rw-r--r--src/lib/libcrypto/asn1/asn1_err.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_err.c b/src/lib/libcrypto/asn1/asn1_err.c
index aa60203ba8..582f613744 100644
--- a/src/lib/libcrypto/asn1/asn1_err.c
+++ b/src/lib/libcrypto/asn1/asn1_err.c
@@ -69,7 +69,7 @@
69#define ERR_REASON(reason) ERR_PACK(ERR_LIB_ASN1,0,reason) 69#define ERR_REASON(reason) ERR_PACK(ERR_LIB_ASN1,0,reason)
70 70
71static ERR_STRING_DATA ASN1_str_functs[]= 71static ERR_STRING_DATA ASN1_str_functs[]=
72 { 72{
73{ERR_FUNC(ASN1_F_A2D_ASN1_OBJECT), "a2d_ASN1_OBJECT"}, 73{ERR_FUNC(ASN1_F_A2D_ASN1_OBJECT), "a2d_ASN1_OBJECT"},
74{ERR_FUNC(ASN1_F_A2I_ASN1_ENUMERATED), "a2i_ASN1_ENUMERATED"}, 74{ERR_FUNC(ASN1_F_A2I_ASN1_ENUMERATED), "a2i_ASN1_ENUMERATED"},
75{ERR_FUNC(ASN1_F_A2I_ASN1_INTEGER), "a2i_ASN1_INTEGER"}, 75{ERR_FUNC(ASN1_F_A2I_ASN1_INTEGER), "a2i_ASN1_INTEGER"},
@@ -192,10 +192,10 @@ static ERR_STRING_DATA ASN1_str_functs[]=
192{ERR_FUNC(ASN1_F_X509_NEW), "X509_NEW"}, 192{ERR_FUNC(ASN1_F_X509_NEW), "X509_NEW"},
193{ERR_FUNC(ASN1_F_X509_PKEY_NEW), "X509_PKEY_new"}, 193{ERR_FUNC(ASN1_F_X509_PKEY_NEW), "X509_PKEY_new"},
194{0,NULL} 194{0,NULL}
195 }; 195};
196 196
197static ERR_STRING_DATA ASN1_str_reasons[]= 197static ERR_STRING_DATA ASN1_str_reasons[]=
198 { 198{
199{ERR_REASON(ASN1_R_ADDING_OBJECT) ,"adding object"}, 199{ERR_REASON(ASN1_R_ADDING_OBJECT) ,"adding object"},
200{ERR_REASON(ASN1_R_ASN1_PARSE_ERROR) ,"asn1 parse error"}, 200{ERR_REASON(ASN1_R_ASN1_PARSE_ERROR) ,"asn1 parse error"},
201{ERR_REASON(ASN1_R_ASN1_SIG_PARSE_ERROR) ,"asn1 sig parse error"}, 201{ERR_REASON(ASN1_R_ASN1_SIG_PARSE_ERROR) ,"asn1 sig parse error"},
@@ -315,18 +315,18 @@ static ERR_STRING_DATA ASN1_str_reasons[]=
315{ERR_REASON(ASN1_R_WRONG_TAG) ,"wrong tag"}, 315{ERR_REASON(ASN1_R_WRONG_TAG) ,"wrong tag"},
316{ERR_REASON(ASN1_R_WRONG_TYPE) ,"wrong type"}, 316{ERR_REASON(ASN1_R_WRONG_TYPE) ,"wrong type"},
317{0,NULL} 317{0,NULL}
318 }; 318};
319 319
320#endif 320#endif
321 321
322void ERR_load_ASN1_strings(void) 322void ERR_load_ASN1_strings(void)
323 { 323{
324#ifndef OPENSSL_NO_ERR 324#ifndef OPENSSL_NO_ERR
325 325
326 if (ERR_func_error_string(ASN1_str_functs[0].error) == NULL) 326 if (ERR_func_error_string(ASN1_str_functs[0].error) == NULL)
327 { 327 {
328 ERR_load_strings(0,ASN1_str_functs); 328 ERR_load_strings(0,ASN1_str_functs);
329 ERR_load_strings(0,ASN1_str_reasons); 329 ERR_load_strings(0,ASN1_str_reasons);
330 }
331#endif
332 } 330 }
331#endif
332}