X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fpem%2Fpem_err.c;h=ec138f05e1c8044b3d8b748d678109fa2521ed60;hp=b8d95204eabbc89b2950b4dfc6332fc33d85a98d;hb=ec577822f95a8bca0023c5c77cef1a4916822d4a;hpb=b7896b3cb86d80206af14a14d69b0717786f2729 diff --git a/crypto/pem/pem_err.c b/crypto/pem/pem_err.c index b8d95204ea..ec138f05e1 100644 --- a/crypto/pem/pem_err.c +++ b/crypto/pem/pem_err.c @@ -56,10 +56,11 @@ * [including the GNU Public Licence.] */ #include -#include "err.h" -#include "pem.h" +#include +#include /* BEGIN ERROR CODES */ +#ifndef NO_ERR static ERR_STRING_DATA PEM_str_functs[]= { {ERR_PACK(0,PEM_F_DEF_CALLBACK,0), "DEF_CALLBACK"}, @@ -103,14 +104,19 @@ static ERR_STRING_DATA PEM_str_reasons[]= {0,NULL}, }; -void ERR_load_PEM_strings() +#endif + +void ERR_load_PEM_strings(void) { static int init=1; 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 + } }