The new names are ossl_err_load_xxx_strings.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15446)
#endif
-int err_load_ASN1_strings_int(void)
+int ossl_err_load_ASN1_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(ASN1_str_reasons[0].error) == NULL)
#endif
-int err_load_ASYNC_strings_int(void)
+int ossl_err_load_ASYNC_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(ASYNC_str_reasons[0].error) == NULL)
#endif
-int err_load_BIO_strings_int(void)
+int ossl_err_load_BIO_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(BIO_str_reasons[0].error) == NULL)
#endif
-int err_load_BN_strings_int(void)
+int ossl_err_load_BN_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(BN_str_reasons[0].error) == NULL)
#endif
-int err_load_BUF_strings_int(void)
+int ossl_err_load_BUF_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(BUF_str_reasons[0].error) == NULL)
# endif
-int err_load_CMP_strings_int(void)
+int ossl_err_load_CMP_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(CMP_str_reasons[0].error) == NULL)
# endif
-int err_load_CMS_strings_int(void)
+int ossl_err_load_CMS_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(CMS_str_reasons[0].error) == NULL)
# endif
-int err_load_COMP_strings_int(void)
+int ossl_err_load_COMP_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(COMP_str_reasons[0].error) == NULL)
#endif
-int err_load_CONF_strings_int(void)
+int ossl_err_load_CONF_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(CONF_str_reasons[0].error) == NULL)
#endif
-int err_load_CRYPTO_strings_int(void)
+int ossl_err_load_CRYPTO_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(CRYPTO_str_reasons[0].error) == NULL)
# endif
-int err_load_CRMF_strings_int(void)
+int ossl_err_load_CRMF_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
# endif
-int err_load_CT_strings_int(void)
+int ossl_err_load_CT_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(CT_str_reasons[0].error) == NULL)
# endif
-int err_load_DH_strings_int(void)
+int ossl_err_load_DH_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(DH_str_reasons[0].error) == NULL)
# endif
-int err_load_DSA_strings_int(void)
+int ossl_err_load_DSA_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(DSA_str_reasons[0].error) == NULL)
#endif
-int err_load_DSO_strings_int(void)
+int ossl_err_load_DSO_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(DSO_str_reasons[0].error) == NULL)
# endif
-int err_load_EC_strings_int(void)
+int ossl_err_load_EC_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(EC_str_reasons[0].error) == NULL)
#endif
-int err_load_OSSL_DECODER_strings_int(void)
+int ossl_err_load_OSSL_DECODER_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(OSSL_DECODER_str_reasons[0].error) == NULL)
#endif
-int err_load_OSSL_ENCODER_strings_int(void)
+int ossl_err_load_OSSL_ENCODER_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(OSSL_ENCODER_str_reasons[0].error) == NULL)
# endif
-int err_load_ENGINE_strings_int(void)
+int ossl_err_load_ENGINE_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(ENGINE_str_reasons[0].error) == NULL)
return 1;
}
-int err_load_ERR_strings_int(void)
+int ossl_err_load_ERR_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (!RUN_ONCE(&err_string_init, do_err_strings_init))
int ERR_load_strings(int lib, ERR_STRING_DATA *str)
{
- if (err_load_ERR_strings_int() == 0)
+ if (ossl_err_load_ERR_strings() == 0)
return 0;
err_patch(lib, str);
int ERR_load_strings_const(const ERR_STRING_DATA *str)
{
- if (err_load_ERR_strings_int() == 0)
+ if (ossl_err_load_ERR_strings() == 0)
return 0;
err_load_strings(str);
return 1;
#include "internal/propertyerr.h"
#include "prov/proverr.h"
-int err_load_crypto_strings_int(void)
+int ossl_err_load_crypto_strings(void)
{
if (0
#ifndef OPENSSL_NO_ERR
- || err_load_ERR_strings_int() == 0 /* include error strings for SYSerr */
- || err_load_BN_strings_int() == 0
- || err_load_RSA_strings_int() == 0
+ || ossl_err_load_ERR_strings() == 0 /* include error strings for SYSerr */
+ || ossl_err_load_BN_strings() == 0
+ || ossl_err_load_RSA_strings() == 0
# ifndef OPENSSL_NO_DH
- || err_load_DH_strings_int() == 0
+ || ossl_err_load_DH_strings() == 0
# endif
- || err_load_EVP_strings_int() == 0
- || err_load_BUF_strings_int() == 0
- || err_load_OBJ_strings_int() == 0
- || err_load_PEM_strings_int() == 0
+ || ossl_err_load_EVP_strings() == 0
+ || ossl_err_load_BUF_strings() == 0
+ || ossl_err_load_OBJ_strings() == 0
+ || ossl_err_load_PEM_strings() == 0
# ifndef OPENSSL_NO_DSA
- || err_load_DSA_strings_int() == 0
+ || ossl_err_load_DSA_strings() == 0
# endif
- || err_load_X509_strings_int() == 0
- || err_load_ASN1_strings_int() == 0
- || err_load_CONF_strings_int() == 0
- || err_load_CRYPTO_strings_int() == 0
+ || ossl_err_load_X509_strings() == 0
+ || ossl_err_load_ASN1_strings() == 0
+ || ossl_err_load_CONF_strings() == 0
+ || ossl_err_load_CRYPTO_strings() == 0
# ifndef OPENSSL_NO_COMP
- || err_load_COMP_strings_int() == 0
+ || ossl_err_load_COMP_strings() == 0
# endif
# ifndef OPENSSL_NO_EC
- || err_load_EC_strings_int() == 0
+ || ossl_err_load_EC_strings() == 0
# endif
- /* skip err_load_SSL_strings_int() because it is not in this library */
- || err_load_BIO_strings_int() == 0
- || err_load_PKCS7_strings_int() == 0
- || err_load_X509V3_strings_int() == 0
- || err_load_PKCS12_strings_int() == 0
- || err_load_RAND_strings_int() == 0
- || err_load_DSO_strings_int() == 0
+ /* skip ossl_err_load_SSL_strings() because it is not in this library */
+ || ossl_err_load_BIO_strings() == 0
+ || ossl_err_load_PKCS7_strings() == 0
+ || ossl_err_load_X509V3_strings() == 0
+ || ossl_err_load_PKCS12_strings() == 0
+ || ossl_err_load_RAND_strings() == 0
+ || ossl_err_load_DSO_strings() == 0
# ifndef OPENSSL_NO_TS
- || err_load_TS_strings_int() == 0
+ || ossl_err_load_TS_strings() == 0
# endif
# ifndef OPENSSL_NO_ENGINE
- || err_load_ENGINE_strings_int() == 0
+ || ossl_err_load_ENGINE_strings() == 0
# endif
- || err_load_HTTP_strings_int() == 0
+ || ossl_err_load_HTTP_strings() == 0
# ifndef OPENSSL_NO_OCSP
- || err_load_OCSP_strings_int() == 0
+ || ossl_err_load_OCSP_strings() == 0
# endif
- || err_load_UI_strings_int() == 0
+ || ossl_err_load_UI_strings() == 0
# ifndef OPENSSL_NO_CMS
- || err_load_CMS_strings_int() == 0
+ || ossl_err_load_CMS_strings() == 0
# endif
# ifndef OPENSSL_NO_CRMF
- || err_load_CRMF_strings_int() == 0
- || err_load_CMP_strings_int() == 0
+ || ossl_err_load_CRMF_strings() == 0
+ || ossl_err_load_CMP_strings() == 0
# endif
# ifndef OPENSSL_NO_CT
- || err_load_CT_strings_int() == 0
+ || ossl_err_load_CT_strings() == 0
# endif
- || err_load_ESS_strings_int() == 0
- || err_load_ASYNC_strings_int() == 0
- || err_load_OSSL_STORE_strings_int() == 0
- || err_load_PROP_strings_int() == 0
- || err_load_PROV_strings_int() == 0
+ || ossl_err_load_ESS_strings() == 0
+ || ossl_err_load_ASYNC_strings() == 0
+ || ossl_err_load_OSSL_STORE_strings() == 0
+ || ossl_err_load_PROP_strings() == 0
+ || ossl_err_load_PROV_strings() == 0
#endif
)
return 0;
# include "crypto/x509v3err.h"
# ifdef OPENSSL_NO_ERR
-# define IMPLEMENT_LEGACY_ERR_LOAD(lib) \
+# define IMPLEMENT_LEGACY_ERR_LOAD(lib) \
int ERR_load_##lib##_strings(void) \
{ \
return 1; \
}
# else
-# define IMPLEMENT_LEGACY_ERR_LOAD(lib) \
+# define IMPLEMENT_LEGACY_ERR_LOAD(lib) \
int ERR_load_##lib##_strings(void) \
{ \
- return err_load_##lib##_strings_int(); \
+ return ossl_err_load_##lib##_strings(); \
}
# endif
#endif
-int err_load_ESS_strings_int(void)
+int ossl_err_load_ESS_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(ESS_str_reasons[0].error) == NULL)
#endif
-int err_load_EVP_strings_int(void)
+int ossl_err_load_EVP_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(EVP_str_reasons[0].error) == NULL)
#endif
-int err_load_HTTP_strings_int(void)
+int ossl_err_load_HTTP_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(HTTP_str_reasons[0].error) == NULL)
* pulling in all the error strings during static linking
*/
#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
- OSSL_TRACE(INIT, "err_load_crypto_strings_int()\n");
- ret = err_load_crypto_strings_int();
+ OSSL_TRACE(INIT, "ossl_err_load_crypto_strings()\n");
+ ret = ossl_err_load_crypto_strings();
load_crypto_strings_inited = 1;
#endif
return ret;
#endif
-int err_load_OBJ_strings_int(void)
+int ossl_err_load_OBJ_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(OBJ_str_reasons[0].error) == NULL)
# endif
-int err_load_OCSP_strings_int(void)
+int ossl_err_load_OCSP_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(OCSP_str_reasons[0].error) == NULL)
#endif
-int err_load_PEM_strings_int(void)
+int ossl_err_load_PEM_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(PEM_str_reasons[0].error) == NULL)
#endif
-int err_load_PKCS12_strings_int(void)
+int ossl_err_load_PKCS12_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(PKCS12_str_reasons[0].error) == NULL)
#endif
-int err_load_PKCS7_strings_int(void)
+int ossl_err_load_PKCS7_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(PKCS7_str_reasons[0].error) == NULL)
#endif
-int err_load_PROP_strings_int(void)
+int ossl_err_load_PROP_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(PROP_str_reasons[0].error) == NULL)
#endif
-int err_load_RAND_strings_int(void)
+int ossl_err_load_RAND_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(RAND_str_reasons[0].error) == NULL)
#endif
-int err_load_RSA_strings_int(void)
+int ossl_err_load_RSA_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(RSA_str_reasons[0].error) == NULL)
# endif
-int err_load_SM2_strings_int(void)
+int ossl_err_load_SM2_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(SM2_str_reasons[0].error) == NULL)
#endif
-int err_load_OSSL_STORE_strings_int(void)
+int ossl_err_load_OSSL_STORE_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(OSSL_STORE_str_reasons[0].error) == NULL)
# endif
-int err_load_TS_strings_int(void)
+int ossl_err_load_TS_strings(void)
{
# ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(TS_str_reasons[0].error) == NULL)
#endif
-int err_load_UI_strings_int(void)
+int ossl_err_load_UI_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(UI_str_reasons[0].error) == NULL)
#endif
-int err_load_X509V3_strings_int(void)
+int ossl_err_load_X509V3_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(X509V3_str_reasons[0].error) == NULL)
#endif
-int err_load_X509_strings_int(void)
+int ossl_err_load_X509_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(X509_str_reasons[0].error) == NULL)
extern "C" {
# endif
-int err_load_ASN1_strings_int(void);
+int ossl_err_load_ASN1_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_ASYNC_strings_int(void);
+int ossl_err_load_ASYNC_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_BIO_strings_int(void);
+int ossl_err_load_BIO_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_BN_strings_int(void);
+int ossl_err_load_BN_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_BUF_strings_int(void);
+int ossl_err_load_BUF_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_CMP
-int err_load_CMP_strings_int(void);
+int ossl_err_load_CMP_strings(void);
# endif
# ifdef __cplusplus
# ifndef OPENSSL_NO_CMS
-int err_load_CMS_strings_int(void);
+int ossl_err_load_CMS_strings(void);
# endif
# ifdef __cplusplus
# ifndef OPENSSL_NO_COMP
-int err_load_COMP_strings_int(void);
+int ossl_err_load_COMP_strings(void);
# endif
# ifdef __cplusplus
extern "C" {
# endif
-int err_load_CONF_strings_int(void);
+int ossl_err_load_CONF_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_CRMF
-int err_load_CRMF_strings_int(void);
+int ossl_err_load_CRMF_strings(void);
# endif
# ifdef __cplusplus
extern "C" {
# endif
-int err_load_CRYPTO_strings_int(void);
+int ossl_err_load_CRYPTO_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_CT
-int err_load_CT_strings_int(void);
+int ossl_err_load_CT_strings(void);
# endif
# ifdef __cplusplus
extern "C" {
# endif
-int err_load_OSSL_DECODER_strings_int(void);
+int ossl_err_load_OSSL_DECODER_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_DH
-int err_load_DH_strings_int(void);
+int ossl_err_load_DH_strings(void);
# endif
# ifdef __cplusplus
# ifndef OPENSSL_NO_DSA
-int err_load_DSA_strings_int(void);
+int ossl_err_load_DSA_strings(void);
# endif
# ifdef __cplusplus
# ifndef OPENSSL_NO_EC
-int err_load_EC_strings_int(void);
+int ossl_err_load_EC_strings(void);
# endif
# ifdef __cplusplus
extern "C" {
# endif
-int err_load_OSSL_ENCODER_strings_int(void);
+int ossl_err_load_OSSL_ENCODER_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_ENGINE
-int err_load_ENGINE_strings_int(void);
+int ossl_err_load_ENGINE_strings(void);
# endif
# ifdef __cplusplus
# define OSSL_CRYPTO_ERR_H
# pragma once
-int err_load_ERR_strings_int(void);
-int err_load_crypto_strings_int(void);
+int ossl_err_load_ERR_strings(void);
+int ossl_err_load_crypto_strings(void);
void err_cleanup(void);
int err_shelve_state(void **);
void err_unshelve_state(void *);
extern "C" {
# endif
-int err_load_ESS_strings_int(void);
+int ossl_err_load_ESS_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_EVP_strings_int(void);
+int ossl_err_load_EVP_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_HTTP_strings_int(void);
+int ossl_err_load_HTTP_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_OBJ_strings_int(void);
+int ossl_err_load_OBJ_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_OCSP
-int err_load_OCSP_strings_int(void);
+int ossl_err_load_OCSP_strings(void);
# endif
# ifdef __cplusplus
extern "C" {
# endif
-int err_load_PEM_strings_int(void);
+int ossl_err_load_PEM_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_PKCS12_strings_int(void);
+int ossl_err_load_PKCS12_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_PKCS7_strings_int(void);
+int ossl_err_load_PKCS7_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_RAND_strings_int(void);
+int ossl_err_load_RAND_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_RSA_strings_int(void);
+int ossl_err_load_RSA_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_SM2
-int err_load_SM2_strings_int(void);
+int ossl_err_load_SM2_strings(void);
/*
* SM2 reason codes.
extern "C" {
# endif
-int err_load_OSSL_STORE_strings_int(void);
+int ossl_err_load_OSSL_STORE_strings(void);
# ifdef __cplusplus
}
# ifndef OPENSSL_NO_TS
-int err_load_TS_strings_int(void);
+int ossl_err_load_TS_strings(void);
# endif
# ifdef __cplusplus
extern "C" {
# endif
-int err_load_UI_strings_int(void);
+int ossl_err_load_UI_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_X509_strings_int(void);
+int ossl_err_load_X509_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_X509V3_strings_int(void);
+int ossl_err_load_X509V3_strings(void);
# ifdef __cplusplus
}
extern "C" {
# endif
-int err_load_DSO_strings_int(void);
+int ossl_err_load_DSO_strings(void);
/*
* DSO reason codes.
extern "C" {
# endif
-int err_load_PROP_strings_int(void);
+int ossl_err_load_PROP_strings(void);
/*
* PROP reason codes.
extern "C" {
# endif
-int err_load_PROV_strings_int(void);
+int ossl_err_load_PROV_strings(void);
# ifdef __cplusplus
}
#endif
-int err_load_PROV_strings_int(void)
+int ossl_err_load_PROV_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(PROV_str_reasons[0].error) == NULL)
#endif
-int err_load_SSL_strings_int(void)
+int ossl_err_load_SSL_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(SSL_str_reasons[0].error) == NULL)
#ifndef OPENSSL_NO_DEPRECATED_3_0
int ERR_load_SSL_strings(void)
{
- return err_load_SSL_strings_int();
+ return ossl_err_load_SSL_strings();
}
#else
NON_EMPTY_TRANSLATION_UNIT
* pulling in all the error strings during static linking
*/
#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
- OSSL_TRACE(INIT, "ossl_init_load_ssl_strings: err_load_SSL_strings_int()\n");
- err_load_SSL_strings_int();
+ OSSL_TRACE(INIT, "ossl_init_load_ssl_strings: ossl_err_load_SSL_strings()\n");
+ ossl_err_load_SSL_strings();
ssl_strings_inited = 1;
#endif
return 1;
extern "C" {
# endif
-int err_load_SSL_strings_int(void);
+int ossl_err_load_SSL_strings(void);
# ifdef __cplusplus
}
$indent = " ";
}
print OUT <<"EOF";
-int err_load_${lib}_strings_int(void);
+int ossl_err_load_${lib}_strings(void);
EOF
# If this library doesn't have a public header file, we write all
if ( $internal ) {
print OUT <<"EOF";
-int err_load_${lib}_strings_int(void)
+int ossl_err_load_${lib}_strings(void)
{
#${indent}ifndef OPENSSL_NO_ERR
if (ERR_reason_error_string(${lib}_str_reasons[0].error) == NULL)