Beispiel #1
0
void
ERR_pk11_error(int function, int reason, char *file, int line)
{
	if (pk11_lib_error_code == 0)
		pk11_lib_error_code = ERR_get_next_error_library();
	ERR_PUT_error(pk11_lib_error_code, function, reason, file, line);
}
Beispiel #2
0
static void
ERR_NSS_error(int function, int reason, const char *file, int line) {
    if (NSS_lib_error_code == 0)
        NSS_lib_error_code = ERR_get_next_error_library();

    ERR_PUT_error(NSS_lib_error_code, function, reason, file, line);
}
static void
ERR_devcrypto_error(int function, int reason, char *file, int line)
{
	if (devcrypto_error_code == 0)
		devcrypto_error_code = ERR_get_next_error_library();
	ERR_PUT_error(devcrypto_error_code, function, reason, file, line);
}
static void ERR_load_Cryptography_OSRandom_strings(void)
{
    if (Cryptography_OSRandom_lib_error_code == 0) {
        Cryptography_OSRandom_lib_error_code = ERR_get_next_error_library();
        ERR_load_strings(Cryptography_OSRandom_lib_error_code,
                         CRYPTOGRAPHY_OSRANDOM_lib_name);
        ERR_load_strings(Cryptography_OSRandom_lib_error_code,
                         CRYPTOGRAPHY_OSRANDOM_str_funcs);
        ERR_load_strings(Cryptography_OSRandom_lib_error_code,
                         CRYPTOGRAPHY_OSRANDOM_str_reasons);
    }
}
static int ERR_load_CAPI_strings(void)
{
    if (lib_code == 0)
        lib_code = ERR_get_next_error_library();

    if (!error_loaded) {
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(lib_code, CAPI_str_functs);
        ERR_load_strings(lib_code, CAPI_str_reasons);
#endif
        error_loaded = 1;
    }
    return 1;
}
Beispiel #6
0
static void
ERR_load_NSS_strings(void) {
    if (NSS_lib_error_code == 0)
        NSS_lib_error_code = ERR_get_next_error_library();

    if (NSS_error_init) return;

    NSS_error_init = 0;
#ifndef OPENSSL_NO_ERR
    ERR_load_strings(NSS_lib_error_code, NSS_str_functs);
    ERR_load_strings(NSS_lib_error_code, NSS_str_reasons);
#endif /*ndef OPENSSL_NO_ERR*/

    NSS_lib_name->error = ERR_PACK(NSS_lib_error_code, 0, 0);
    ERR_load_strings(0, NSS_lib_name);
}
Beispiel #7
0
/*
 * Called by our PKCS12 code to read our function and error codes
 * into memory so that the OpenSSL framework can retrieve them.
 */
void
ERR_load_SUNW_strings(void)
{
	assert(SUNW_lib_error_code == 0);
#ifndef OPENSSL_NO_ERR
	/*
	 * Have OpenSSL provide us with a unique ID.
	 */
	SUNW_lib_error_code = ERR_get_next_error_library();

	ERR_load_strings(SUNW_lib_error_code, SUNW_str_functs);
	ERR_load_strings(SUNW_lib_error_code, SUNW_str_reasons);

	SUNW_lib_name->error = ERR_PACK(SUNW_lib_error_code, 0, 0);
	ERR_load_strings(0, SUNW_lib_name);
#endif
}
Beispiel #8
0
static void ERR_load_RSAREF_strings(void)
{
    if (RSAREF_lib_error_code == 0)
        RSAREF_lib_error_code = ERR_get_next_error_library();

    if (RSAREF_error_init) {
        RSAREF_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(RSAREF_lib_error_code, RSAREF_str_functs);
        ERR_load_strings(RSAREF_lib_error_code, RSAREF_str_reasons);
#endif

#ifdef RSAREF_LIB_NAME
        RSAREF_lib_name->error = ERR_PACK(RSAREF_lib_error_code, 0, 0);
        ERR_load_strings(0, RSAREF_lib_name);
#endif
    }
}
static void ERR_load_NURON_strings(void)
{
    if (NURON_lib_error_code == 0)
        NURON_lib_error_code = ERR_get_next_error_library();

    if (NURON_error_init) {
        NURON_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(NURON_lib_error_code, NURON_str_functs);
        ERR_load_strings(NURON_lib_error_code, NURON_str_reasons);
#endif

#ifdef NURON_LIB_NAME
        NURON_lib_name->error = ERR_PACK(NURON_lib_error_code, 0, 0);
        ERR_load_strings(0, NURON_lib_name);
#endif
    }
}
Beispiel #10
0
static void ERR_load_EWES_strings(void)
{
    if (EWES_lib_error_code == 0)
        EWES_lib_error_code = ERR_get_next_error_library();

    if (EWES_error_init) {
        EWES_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(EWES_lib_error_code, EWES_str_functs);
        ERR_load_strings(EWES_lib_error_code, EWES_str_reasons);
#endif

#ifdef EWES_LIB_NAME
        EWES_lib_name->error = ERR_PACK(EWES_lib_error_code, 0, 0);
        ERR_load_strings(0, EWES_lib_name);
#endif
    }
}
Beispiel #11
0
static void ERR_load_GMP_strings(void)
{
    if (GMP_lib_error_code == 0)
        GMP_lib_error_code = ERR_get_next_error_library();

    if (GMP_error_init) {
        GMP_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(GMP_lib_error_code, GMP_str_functs);
        ERR_load_strings(GMP_lib_error_code, GMP_str_reasons);
#endif

#ifdef GMP_LIB_NAME
        GMP_lib_name->error = ERR_PACK(GMP_lib_error_code, 0, 0);
        ERR_load_strings(0, GMP_lib_name);
#endif
    }
}
Beispiel #12
0
static void ERR_load_ATALLA_strings(void)
{
    if (ATALLA_lib_error_code == 0)
        ATALLA_lib_error_code = ERR_get_next_error_library();

    if (ATALLA_error_init) {
        ATALLA_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(ATALLA_lib_error_code, ATALLA_str_functs);
        ERR_load_strings(ATALLA_lib_error_code, ATALLA_str_reasons);
#endif

#ifdef ATALLA_LIB_NAME
        ATALLA_lib_name->error = ERR_PACK(ATALLA_lib_error_code, 0, 0);
        ERR_load_strings(0, ATALLA_lib_name);
#endif
    }
}
Beispiel #13
0
static void ERR_load_HWCRHK_strings(void)
{
    if (HWCRHK_lib_error_code == 0)
        HWCRHK_lib_error_code = ERR_get_next_error_library();

    if (HWCRHK_error_init) {
        HWCRHK_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(HWCRHK_lib_error_code, HWCRHK_str_functs);
        ERR_load_strings(HWCRHK_lib_error_code, HWCRHK_str_reasons);
#endif

#ifdef HWCRHK_LIB_NAME
        HWCRHK_lib_name->error = ERR_PACK(HWCRHK_lib_error_code, 0, 0);
        ERR_load_strings(0, HWCRHK_lib_name);
#endif
    }
}
Beispiel #14
0
static void ERR_load_UBSEC_strings(void)
{
    if (UBSEC_lib_error_code == 0)
        UBSEC_lib_error_code = ERR_get_next_error_library();

    if (UBSEC_error_init) {
        UBSEC_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(UBSEC_lib_error_code, UBSEC_str_functs);
        ERR_load_strings(UBSEC_lib_error_code, UBSEC_str_reasons);
#endif

#ifdef UBSEC_LIB_NAME
        UBSEC_lib_name->error = ERR_PACK(UBSEC_lib_error_code, 0, 0);
        ERR_load_strings(0, UBSEC_lib_name);
#endif
    }
}
static void ERR_load_CL_strings(void)
{
    if (CL_lib_error_code == 0)
        CL_lib_error_code = ERR_get_next_error_library();

    if (CL_error_init) {
        CL_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings(CL_lib_error_code, CL_str_functs);
        ERR_load_strings(CL_lib_error_code, CL_str_reasons);
#endif

#ifdef CL_LIB_NAME
        CL_lib_name->error = ERR_PACK(CL_lib_error_code, 0, 0);
        ERR_load_strings(0, CL_lib_name);
#endif
    }
}
Beispiel #16
0
static void ERR_load_IBMCA_strings (void)
{
    if (IBMCA_lib_error_code == 0)
        IBMCA_lib_error_code = ERR_get_next_error_library ();

    if (IBMCA_error_init)
    {
        IBMCA_error_init = 0;
#ifndef OPENSSL_NO_ERR
        ERR_load_strings (IBMCA_lib_error_code, IBMCA_str_functs);
        ERR_load_strings (IBMCA_lib_error_code, IBMCA_str_reasons);
#endif

#ifdef IBMCA_LIB_NAME
        IBMCA_lib_name->error = ERR_PACK (IBMCA_lib_error_code, 0, 0);
        ERR_load_strings (0, IBMCA_lib_name);
#endif
    }
}
Beispiel #17
0
static void ERR_load_DEADCAFE_strings(void)
	{
	if (DEADCAFE_lib_error_code == 0)
		DEADCAFE_lib_error_code=ERR_get_next_error_library();

	if (DEADCAFE_error_init)
		{
		DEADCAFE_error_init=0;
#ifndef OPENSSL_NO_ERR
		ERR_load_strings(DEADCAFE_lib_error_code,DEADCAFE_str_functs);
		ERR_load_strings(DEADCAFE_lib_error_code,DEADCAFE_str_reasons);
#endif

#ifdef DEADCAFE_LIB_NAME
		DEADCAFE_lib_name->error = ERR_PACK(DEADCAFE_lib_error_code,0,0);
		ERR_load_strings(0,DEADCAFE_lib_name);
#endif
		}
	}
void ERR_load_BECEEM_strings(void)
	{
	if (BECEEM_lib_error_code == 0)
		BECEEM_lib_error_code=ERR_get_next_error_library();

	if (BECEEM_error_init)
		{
		BECEEM_error_init=0;
#ifndef OPENSSL_NO_ERR
		ERR_load_strings(BECEEM_lib_error_code,BECEEM_str_functs);
		ERR_load_strings(BECEEM_lib_error_code,BECEEM_str_reasons);
#endif

#ifdef BECEEM_LIB_NAME
		BECEEM_lib_name->error = ERR_PACK(BECEEM_lib_error_code,0,0);
		ERR_load_strings(0,BECEEM_lib_name);
#endif
		}
	}
static void ERR_load_SUREWARE_strings(void)
	{
	if (SUREWARE_lib_error_code == 0)
		SUREWARE_lib_error_code=ERR_get_next_error_library();

	if (SUREWARE_error_init)
		{
		SUREWARE_error_init=0;
#ifndef OPENSSL_NO_ERR
		ERR_load_strings(SUREWARE_lib_error_code,SUREWARE_str_functs);
		ERR_load_strings(SUREWARE_lib_error_code,SUREWARE_str_reasons);
#endif

#ifdef SUREWARE_LIB_NAME
		SUREWARE_lib_name->error = ERR_PACK(SUREWARE_lib_error_code,0,0);
		ERR_load_strings(0,SUREWARE_lib_name);
#endif
		}
	}
static void
ERR_load_devcrypto_strings(void)
{
	if (devcrypto_error_code == 0)
		devcrypto_error_code = ERR_get_next_error_library();

	if (devcrypto_error_init) {
		devcrypto_error_init = 0;

#ifndef OPENSSL_NO_ERR
		ERR_load_strings(devcrypto_error_code, devcrypto_str_functs);
		ERR_load_strings(devcrypto_error_code, devcrypto_str_reasons);
#endif

#ifdef DEVCRYPTO_LIB_NAME
		DEVCRYPTO_lib_name->error =
		    ERR_PACK(devcrypto_error_code, 0, 0);
		ERR_load_strings(0, DEVCRYPTO_lib_name);
#endif
	}
}
Beispiel #21
0
static void
ERR_load_pk11_strings(void)
	{
	if (pk11_lib_error_code == 0)
		pk11_lib_error_code = ERR_get_next_error_library();

	if (pk11_error_init)
		{
		pk11_error_init = 0;
#ifndef OPENSSL_NO_ERR
		ERR_load_strings(pk11_lib_error_code, pk11_str_functs);
		ERR_load_strings(pk11_lib_error_code, pk11_str_reasons);
#endif

#ifdef PK11_ENGINE_LIB_NAME
		pk11_engine_lib_name->error =
		    ERR_PACK(pk11_lib_error_code, 0, 0);
		ERR_load_strings(0, pk11_engine_lib_name);
#endif
		}
}
Beispiel #22
0
static void ERR_DEADCAFE_error(int function, int reason, char *file, int line)
	{
	if (DEADCAFE_lib_error_code == 0)
		DEADCAFE_lib_error_code=ERR_get_next_error_library();
	ERR_PUT_error(DEADCAFE_lib_error_code,function,reason,file,line);
	}
Beispiel #23
0
static void ERR_ATALLA_error(int function, int reason, char *file, int line)
{
    if (ATALLA_lib_error_code == 0)
        ATALLA_lib_error_code = ERR_get_next_error_library();
    ERR_PUT_error(ATALLA_lib_error_code, function, reason, file, line);
}
static void ERR_SUREWARE_error(int function, int reason, char *file, int line)
	{
	if (SUREWARE_lib_error_code == 0)
		SUREWARE_lib_error_code=ERR_get_next_error_library();
	ERR_PUT_error(SUREWARE_lib_error_code,function,reason,file,line);
	}
static void ERR_CAPI_error(int function, int reason, char *file, int line)
{
    if (lib_code == 0)
        lib_code = ERR_get_next_error_library();
    ERR_PUT_error(lib_code, function, reason, file, line);
}
Beispiel #26
0
static void ERR_HWCRHK_error(int function, int reason, char *file, int line)
{
    if (HWCRHK_lib_error_code == 0)
        HWCRHK_lib_error_code = ERR_get_next_error_library();
    ERR_PUT_error(HWCRHK_lib_error_code, function, reason, file, line);
}
Beispiel #27
0
static void ERR_RSAREF_error(int function, int reason, char *file, int line)
{
    if (RSAREF_lib_error_code == 0)
        RSAREF_lib_error_code = ERR_get_next_error_library();
    ERR_PUT_error(RSAREF_lib_error_code, function, reason, file, line);
}
static void ERR_CCA4758_error(int function, int reason, char *file, int line)
	{
	if (CCA4758_lib_error_code == 0)
		CCA4758_lib_error_code=ERR_get_next_error_library();
	ERR_PUT_error(CCA4758_lib_error_code,function,reason,file,line);
	}
void ERR_BECEEM_error(int function, int reason, char *file, int line)
	{
	if (BECEEM_lib_error_code == 0)
		BECEEM_lib_error_code = ERR_get_next_error_library();
	ERR_PUT_error(BECEEM_lib_error_code, function, reason, file, line);
	}