util/mkerr.pl: make it not depend on the function code
[openssl.git] / crypto / dh / dh_err.c
index 69f1452441ea3530c581a269d519e6c9cb4b9484..e5eb32381d289437f18d6978ecc338ec83a45b29 100644 (file)
@@ -60,7 +60,7 @@ static const ERR_STRING_DATA DH_str_reasons[] = {
 int ERR_load_DH_strings(void)
 {
 #ifndef OPENSSL_NO_ERR
-    if (ERR_func_error_string(DH_str_reasons[0].error) == NULL)
+    if (ERR_reason_error_string(DH_str_reasons[0].error) == NULL)
         ERR_load_strings_const(DH_str_reasons);
 #endif
     return 1;