diff options
author | djm <> | 2008-09-06 12:15:56 +0000 |
---|---|---|
committer | djm <> | 2008-09-06 12:15:56 +0000 |
commit | 5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80 (patch) | |
tree | aba68249883aa9d2361d92eef69a81d0c4961732 /src/lib/libcrypto/dsa/dsa_err.c | |
parent | f6198d4d0ab97685dc56be2d48715ed39fcc74b9 (diff) | |
download | openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.tar.gz openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.tar.bz2 openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.zip |
import of OpenSSL 0.9.8h
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_err.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_err.c | 11 |
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 | ||
90 | static ERR_STRING_DATA DSA_str_reasons[]= | 90 | static 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 | ||
99 | void ERR_load_DSA_strings(void) | 101 | void 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 | } |