Import of old SSLeay release: SSLeay 0.9.0b
[openssl.git] / crypto / evp / evp_err.c
index 326da1177e2693af74aaee7c1dee48afc9ed32e9..2b0a0ab93f4735c987711906af644ae816bd6a7d 100644 (file)
 #include "evp.h"
 
 /* BEGIN ERROR CODES */
+#ifndef NO_ERR
 static ERR_STRING_DATA EVP_str_functs[]=
        {
 {ERR_PACK(0,EVP_F_D2I_PKEY,0), "D2I_PKEY"},
 {ERR_PACK(0,EVP_F_EVP_DECRYPTFINAL,0), "EVP_DecryptFinal"},
 {ERR_PACK(0,EVP_F_EVP_OPENINIT,0),     "EVP_OpenInit"},
 {ERR_PACK(0,EVP_F_EVP_PKEY_COPY_PARAMETERS,0), "EVP_PKEY_copy_parameters"},
+{ERR_PACK(0,EVP_F_EVP_PKEY_DECRYPT,0), "EVP_PKEY_decrypt"},
+{ERR_PACK(0,EVP_F_EVP_PKEY_ENCRYPT,0), "EVP_PKEY_encrypt"},
 {ERR_PACK(0,EVP_F_EVP_PKEY_NEW,0),     "EVP_PKEY_new"},
-{ERR_PACK(0,EVP_F_EVP_SEALINIT,0),     "EVP_SealInit"},
 {ERR_PACK(0,EVP_F_EVP_SIGNFINAL,0),    "EVP_SignFinal"},
 {ERR_PACK(0,EVP_F_EVP_VERIFYFINAL,0),  "EVP_VerifyFinal"},
 {0,NULL},
@@ -88,14 +90,19 @@ static ERR_STRING_DATA EVP_str_reasons[]=
 {0,NULL},
        };
 
+#endif
+
 void ERR_load_EVP_strings()
        {
        static int init=1;
 
-       if (init)
-               {
+       if (init);
+               {;
                init=0;
+#ifndef NO_ERR
                ERR_load_strings(ERR_LIB_EVP,EVP_str_functs);
                ERR_load_strings(ERR_LIB_EVP,EVP_str_reasons);
+#endif
+
                }
        }