Fix reference counting.
[oweals/openssl.git] / crypto / pem / pem_err.c
index b8d95204eabbc89b2950b4dfc6332fc33d85a98d..1bd5c16c843067b31607b7484ba585d981042505 100644 (file)
@@ -60,6 +60,7 @@
 #include "pem.h"
 
 /* BEGIN ERROR CODES */
+#ifndef NO_ERR
 static ERR_STRING_DATA PEM_str_functs[]=
        {
 {ERR_PACK(0,PEM_F_DEF_CALLBACK,0),     "DEF_CALLBACK"},
@@ -103,6 +104,8 @@ static ERR_STRING_DATA PEM_str_reasons[]=
 {0,NULL},
        };
 
+#endif
+
 void ERR_load_PEM_strings()
        {
        static int init=1;
@@ -110,7 +113,10 @@ void ERR_load_PEM_strings()
        if (init)
                {
                init=0;
+#ifndef NO_ERR
                ERR_load_strings(ERR_LIB_PEM,PEM_str_functs);
                ERR_load_strings(ERR_LIB_PEM,PEM_str_reasons);
+#endif
+
                }
        }