Skip to content

Commit

Permalink
err: rename err_load_xxx_strings_int functions
Browse files Browse the repository at this point in the history
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 openssl#15446)
  • Loading branch information
paulidale committed May 26, 2021
1 parent 9080ed2 commit b93f6c2
Show file tree
Hide file tree
Showing 84 changed files with 128 additions and 128 deletions.
2 changes: 1 addition & 1 deletion crypto/asn1/asn1_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static const ERR_STRING_DATA ASN1_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/async/async_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static const ERR_STRING_DATA ASYNC_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/bio/bio_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static const ERR_STRING_DATA BIO_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn/bn_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static const ERR_STRING_DATA BN_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/buffer/buf_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static const ERR_STRING_DATA BUF_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/cmp/cmp_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static const ERR_STRING_DATA CMP_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/cms/cms_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static const ERR_STRING_DATA CMS_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/comp/comp_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static const ERR_STRING_DATA COMP_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/conf/conf_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static const ERR_STRING_DATA CONF_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/cpt_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static const ERR_STRING_DATA CRYPTO_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/crmf/crmf_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static const ERR_STRING_DATA CRMF_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/ct/ct_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static const ERR_STRING_DATA CT_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/dh/dh_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static const ERR_STRING_DATA DH_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/dsa/dsa_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static const ERR_STRING_DATA DSA_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/dso/dso_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static const ERR_STRING_DATA DSO_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/ec/ec_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static const ERR_STRING_DATA EC_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/encode_decode/decoder_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const ERR_STRING_DATA OSSL_DECODER_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/encode_decode/encoder_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const ERR_STRING_DATA OSSL_ENCODER_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/engine/eng_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static const ERR_STRING_DATA ENGINE_str_reasons[] = {

# 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)
Expand Down
6 changes: 3 additions & 3 deletions crypto/err/err.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ static int err_load_strings(const ERR_STRING_DATA *str)
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))
Expand All @@ -262,7 +262,7 @@ int err_load_ERR_strings_int(void)

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);
Expand All @@ -272,7 +272,7 @@ int ERR_load_strings(int lib, ERR_STRING_DATA *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;
Expand Down
74 changes: 37 additions & 37 deletions crypto/err/err_all.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,66 +45,66 @@
#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;
Expand Down
6 changes: 3 additions & 3 deletions crypto/err/err_all_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@
# 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

Expand Down
2 changes: 1 addition & 1 deletion crypto/ess/ess_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static const ERR_STRING_DATA ESS_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/evp/evp_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static const ERR_STRING_DATA EVP_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/http/http_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static const ERR_STRING_DATA HTTP_str_reasons[] = {

#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)
Expand Down
4 changes: 2 additions & 2 deletions crypto/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_load_crypto_strings)
* 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;
Expand Down
2 changes: 1 addition & 1 deletion crypto/objects/obj_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static const ERR_STRING_DATA OBJ_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/ocsp/ocsp_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static const ERR_STRING_DATA OCSP_str_reasons[] = {

# 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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/pem/pem_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static const ERR_STRING_DATA PEM_str_reasons[] = {

#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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/pkcs12/pk12err.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static const ERR_STRING_DATA PKCS12_str_reasons[] = {

#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)
Expand Down
Loading

0 comments on commit b93f6c2

Please sign in to comment.