summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_err.c')
-rw-r--r--src/lib/libcrypto/dsa/dsa_err.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_err.c b/src/lib/libcrypto/dsa/dsa_err.c
index fd42053572..768711994b 100644
--- a/src/lib/libcrypto/dsa/dsa_err.c
+++ b/src/lib/libcrypto/dsa/dsa_err.c
@@ -89,8 +89,10 @@ static ERR_STRING_DATA DSA_str_functs[]=
89 89
90static ERR_STRING_DATA DSA_str_reasons[]= 90static ERR_STRING_DATA DSA_str_reasons[]=
91 { 91 {
92{ERR_REASON(DSA_R_BAD_Q_VALUE) ,"bad q value"},
92{ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"}, 93{ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"},
93{ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"}, 94{ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"},
95{ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"},
94{0,NULL} 96{0,NULL}
95 }; 97 };
96 98
@@ -98,15 +100,12 @@ static ERR_STRING_DATA DSA_str_reasons[]=
98 100
99void ERR_load_DSA_strings(void) 101void ERR_load_DSA_strings(void)
100 { 102 {
101 static int init=1; 103#ifndef OPENSSL_NO_ERR
102 104
103 if (init) 105 if (ERR_func_error_string(DSA_str_functs[0].error) == NULL)
104 { 106 {
105 init=0;
106#ifndef OPENSSL_NO_ERR
107 ERR_load_strings(0,DSA_str_functs); 107 ERR_load_strings(0,DSA_str_functs);
108 ERR_load_strings(0,DSA_str_reasons); 108 ERR_load_strings(0,DSA_str_reasons);
109#endif
110
111 } 109 }
110#endif
112 } 111 }