util/mkerr.pl: make it not depend on the function code
[openssl.git] / crypto / pkcs7 / pkcs7err.c
index 24201247d46504904a3d32c0e4047a534d5868a3..f7b87d552a616c8fd5ef0859f2b9864f867c7d41 100644 (file)
@@ -90,7 +90,7 @@ static const ERR_STRING_DATA PKCS7_str_reasons[] = {
 int ERR_load_PKCS7_strings(void)
 {
 #ifndef OPENSSL_NO_ERR
-    if (ERR_func_error_string(PKCS7_str_reasons[0].error) == NULL)
+    if (ERR_reason_error_string(PKCS7_str_reasons[0].error) == NULL)
         ERR_load_strings_const(PKCS7_str_reasons);
 #endif
     return 1;