diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp_err.c')
-rw-r--r-- | src/lib/libcrypto/evp/evp_err.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp_err.c b/src/lib/libcrypto/evp/evp_err.c index a01412a07c..3a23d21c21 100644 --- a/src/lib/libcrypto/evp/evp_err.c +++ b/src/lib/libcrypto/evp/evp_err.c | |||
@@ -63,7 +63,7 @@ | |||
63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
64 | 64 | ||
65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ |
66 | #ifndef NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
67 | static ERR_STRING_DATA EVP_str_functs[]= | 67 | static ERR_STRING_DATA EVP_str_functs[]= |
68 | { | 68 | { |
69 | {ERR_PACK(0,EVP_F_D2I_PKEY,0), "D2I_PKEY"}, | 69 | {ERR_PACK(0,EVP_F_D2I_PKEY,0), "D2I_PKEY"}, |
@@ -71,6 +71,8 @@ static ERR_STRING_DATA EVP_str_functs[]= | |||
71 | {ERR_PACK(0,EVP_F_EVP_CIPHER_CTX_CTRL,0), "EVP_CIPHER_CTX_ctrl"}, | 71 | {ERR_PACK(0,EVP_F_EVP_CIPHER_CTX_CTRL,0), "EVP_CIPHER_CTX_ctrl"}, |
72 | {ERR_PACK(0,EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH,0), "EVP_CIPHER_CTX_set_key_length"}, | 72 | {ERR_PACK(0,EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH,0), "EVP_CIPHER_CTX_set_key_length"}, |
73 | {ERR_PACK(0,EVP_F_EVP_DECRYPTFINAL,0), "EVP_DecryptFinal"}, | 73 | {ERR_PACK(0,EVP_F_EVP_DECRYPTFINAL,0), "EVP_DecryptFinal"}, |
74 | {ERR_PACK(0,EVP_F_EVP_DIGESTINIT,0), "EVP_DigestInit"}, | ||
75 | {ERR_PACK(0,EVP_F_EVP_ENCRYPTFINAL,0), "EVP_EncryptFinal"}, | ||
74 | {ERR_PACK(0,EVP_F_EVP_MD_CTX_COPY,0), "EVP_MD_CTX_copy"}, | 76 | {ERR_PACK(0,EVP_F_EVP_MD_CTX_COPY,0), "EVP_MD_CTX_copy"}, |
75 | {ERR_PACK(0,EVP_F_EVP_OPENINIT,0), "EVP_OpenInit"}, | 77 | {ERR_PACK(0,EVP_F_EVP_OPENINIT,0), "EVP_OpenInit"}, |
76 | {ERR_PACK(0,EVP_F_EVP_PBE_ALG_ADD,0), "EVP_PBE_alg_add"}, | 78 | {ERR_PACK(0,EVP_F_EVP_PBE_ALG_ADD,0), "EVP_PBE_alg_add"}, |
@@ -85,6 +87,7 @@ static ERR_STRING_DATA EVP_str_functs[]= | |||
85 | {ERR_PACK(0,EVP_F_EVP_PKEY_GET1_DSA,0), "EVP_PKEY_get1_DSA"}, | 87 | {ERR_PACK(0,EVP_F_EVP_PKEY_GET1_DSA,0), "EVP_PKEY_get1_DSA"}, |
86 | {ERR_PACK(0,EVP_F_EVP_PKEY_GET1_RSA,0), "EVP_PKEY_get1_RSA"}, | 88 | {ERR_PACK(0,EVP_F_EVP_PKEY_GET1_RSA,0), "EVP_PKEY_get1_RSA"}, |
87 | {ERR_PACK(0,EVP_F_EVP_PKEY_NEW,0), "EVP_PKEY_new"}, | 89 | {ERR_PACK(0,EVP_F_EVP_PKEY_NEW,0), "EVP_PKEY_new"}, |
90 | {ERR_PACK(0,EVP_F_EVP_RIJNDAEL,0), "EVP_RIJNDAEL"}, | ||
88 | {ERR_PACK(0,EVP_F_EVP_SIGNFINAL,0), "EVP_SignFinal"}, | 91 | {ERR_PACK(0,EVP_F_EVP_SIGNFINAL,0), "EVP_SignFinal"}, |
89 | {ERR_PACK(0,EVP_F_EVP_VERIFYFINAL,0), "EVP_VerifyFinal"}, | 92 | {ERR_PACK(0,EVP_F_EVP_VERIFYFINAL,0), "EVP_VerifyFinal"}, |
90 | {ERR_PACK(0,EVP_F_PKCS5_PBE_KEYIVGEN,0), "PKCS5_PBE_keyivgen"}, | 93 | {ERR_PACK(0,EVP_F_PKCS5_PBE_KEYIVGEN,0), "PKCS5_PBE_keyivgen"}, |
@@ -96,12 +99,15 @@ static ERR_STRING_DATA EVP_str_functs[]= | |||
96 | 99 | ||
97 | static ERR_STRING_DATA EVP_str_reasons[]= | 100 | static ERR_STRING_DATA EVP_str_reasons[]= |
98 | { | 101 | { |
102 | {EVP_R_BAD_BLOCK_LENGTH ,"bad block length"}, | ||
99 | {EVP_R_BAD_DECRYPT ,"bad decrypt"}, | 103 | {EVP_R_BAD_DECRYPT ,"bad decrypt"}, |
104 | {EVP_R_BAD_KEY_LENGTH ,"bad key length"}, | ||
100 | {EVP_R_BN_DECODE_ERROR ,"bn decode error"}, | 105 | {EVP_R_BN_DECODE_ERROR ,"bn decode error"}, |
101 | {EVP_R_BN_PUBKEY_ERROR ,"bn pubkey error"}, | 106 | {EVP_R_BN_PUBKEY_ERROR ,"bn pubkey error"}, |
102 | {EVP_R_CIPHER_PARAMETER_ERROR ,"cipher parameter error"}, | 107 | {EVP_R_CIPHER_PARAMETER_ERROR ,"cipher parameter error"}, |
103 | {EVP_R_CTRL_NOT_IMPLEMENTED ,"ctrl not implemented"}, | 108 | {EVP_R_CTRL_NOT_IMPLEMENTED ,"ctrl not implemented"}, |
104 | {EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED ,"ctrl operation not implemented"}, | 109 | {EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED ,"ctrl operation not implemented"}, |
110 | {EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH ,"data not multiple of block length"}, | ||
105 | {EVP_R_DECODE_ERROR ,"decode error"}, | 111 | {EVP_R_DECODE_ERROR ,"decode error"}, |
106 | {EVP_R_DIFFERENT_KEY_TYPES ,"different key types"}, | 112 | {EVP_R_DIFFERENT_KEY_TYPES ,"different key types"}, |
107 | {EVP_R_ENCODE_ERROR ,"encode error"}, | 113 | {EVP_R_ENCODE_ERROR ,"encode error"}, |
@@ -116,6 +122,7 @@ static ERR_STRING_DATA EVP_str_reasons[]= | |||
116 | {EVP_R_KEYGEN_FAILURE ,"keygen failure"}, | 122 | {EVP_R_KEYGEN_FAILURE ,"keygen failure"}, |
117 | {EVP_R_MISSING_PARAMETERS ,"missing parameters"}, | 123 | {EVP_R_MISSING_PARAMETERS ,"missing parameters"}, |
118 | {EVP_R_NO_CIPHER_SET ,"no cipher set"}, | 124 | {EVP_R_NO_CIPHER_SET ,"no cipher set"}, |
125 | {EVP_R_NO_DIGEST_SET ,"no digest set"}, | ||
119 | {EVP_R_NO_DSA_PARAMETERS ,"no dsa parameters"}, | 126 | {EVP_R_NO_DSA_PARAMETERS ,"no dsa parameters"}, |
120 | {EVP_R_NO_SIGN_FUNCTION_CONFIGURED ,"no sign function configured"}, | 127 | {EVP_R_NO_SIGN_FUNCTION_CONFIGURED ,"no sign function configured"}, |
121 | {EVP_R_NO_VERIFY_FUNCTION_CONFIGURED ,"no verify function configured"}, | 128 | {EVP_R_NO_VERIFY_FUNCTION_CONFIGURED ,"no verify function configured"}, |
@@ -144,7 +151,7 @@ void ERR_load_EVP_strings(void) | |||
144 | if (init) | 151 | if (init) |
145 | { | 152 | { |
146 | init=0; | 153 | init=0; |
147 | #ifndef NO_ERR | 154 | #ifndef OPENSSL_NO_ERR |
148 | ERR_load_strings(ERR_LIB_EVP,EVP_str_functs); | 155 | ERR_load_strings(ERR_LIB_EVP,EVP_str_functs); |
149 | ERR_load_strings(ERR_LIB_EVP,EVP_str_reasons); | 156 | ERR_load_strings(ERR_LIB_EVP,EVP_str_reasons); |
150 | #endif | 157 | #endif |