util/mkerr.pl: make it not depend on the function code
[openssl.git] / crypto / cpt_err.c
index 012f181d2afaeb92e63689904a5d0092356c126f..0028b329a32199a14485a036b8a511786aac4271 100644 (file)
@@ -52,7 +52,7 @@ static const ERR_STRING_DATA CRYPTO_str_reasons[] = {
 int ERR_load_CRYPTO_strings(void)
 {
 #ifndef OPENSSL_NO_ERR
-    if (ERR_func_error_string(CRYPTO_str_reasons[0].error) == NULL)
+    if (ERR_reason_error_string(CRYPTO_str_reasons[0].error) == NULL)
         ERR_load_strings_const(CRYPTO_str_reasons);
 #endif
     return 1;