util/mkerr.pl: make it not depend on the function code
[openssl.git] / crypto / pem / pem_err.c
index a4743d10bd25088768dde81196c17bbe6517b716..014aade18585ab4752cfacedc1c51f0c8c2f20ae 100644 (file)
@@ -60,7 +60,7 @@ static const ERR_STRING_DATA PEM_str_reasons[] = {
 int ERR_load_PEM_strings(void)
 {
 #ifndef OPENSSL_NO_ERR
-    if (ERR_func_error_string(PEM_str_reasons[0].error) == NULL)
+    if (ERR_reason_error_string(PEM_str_reasons[0].error) == NULL)
         ERR_load_strings_const(PEM_str_reasons);
 #endif
     return 1;