2016-05-17 19:38:09 +00:00
|
|
|
/*
|
2018-02-13 12:51:29 +00:00
|
|
|
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 10:52:47 +00:00
|
|
|
*
|
2016-05-17 19:38:09 +00:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
1998-12-21 10:52:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2019-09-27 21:57:58 +00:00
|
|
|
#include "crypto/err.h"
|
2018-01-23 15:49:53 +00:00
|
|
|
#include <openssl/asn1err.h>
|
|
|
|
#include <openssl/bnerr.h>
|
|
|
|
#include <openssl/ecerr.h>
|
|
|
|
#include <openssl/buffererr.h>
|
|
|
|
#include <openssl/bioerr.h>
|
|
|
|
#include <openssl/comperr.h>
|
|
|
|
#include <openssl/rsaerr.h>
|
|
|
|
#include <openssl/dherr.h>
|
|
|
|
#include <openssl/dsaerr.h>
|
|
|
|
#include <openssl/evperr.h>
|
|
|
|
#include <openssl/objectserr.h>
|
|
|
|
#include <openssl/pemerr.h>
|
|
|
|
#include <openssl/pkcs7err.h>
|
|
|
|
#include <openssl/x509err.h>
|
|
|
|
#include <openssl/x509v3err.h>
|
|
|
|
#include <openssl/conferr.h>
|
|
|
|
#include <openssl/pkcs12err.h>
|
|
|
|
#include <openssl/randerr.h>
|
2016-03-23 12:54:52 +00:00
|
|
|
#include "internal/dso.h"
|
2018-01-23 15:49:53 +00:00
|
|
|
#include <openssl/engineerr.h>
|
|
|
|
#include <openssl/uierr.h>
|
|
|
|
#include <openssl/ocsperr.h>
|
2000-10-26 21:07:28 +00:00
|
|
|
#include <openssl/err.h>
|
2018-01-23 15:49:53 +00:00
|
|
|
#include <openssl/tserr.h>
|
|
|
|
#include <openssl/cmserr.h>
|
|
|
|
#include <openssl/cterr.h>
|
|
|
|
#include <openssl/asyncerr.h>
|
|
|
|
#include <openssl/kdferr.h>
|
|
|
|
#include <openssl/storeerr.h>
|
2008-10-26 18:40:52 +00:00
|
|
|
|
2016-07-12 13:50:06 +00:00
|
|
|
int err_load_crypto_strings_int(void)
|
2015-01-22 03:40:55 +00:00
|
|
|
{
|
2016-07-12 13:50:06 +00:00
|
|
|
if (
|
2001-02-19 16:06:34 +00:00
|
|
|
#ifndef OPENSSL_NO_ERR
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_ERR_strings() == 0 || /* include error strings for SYSerr */
|
|
|
|
ERR_load_BN_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifndef OPENSSL_NO_RSA
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_RSA_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_DH
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_DH_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_EVP_strings() == 0 ||
|
|
|
|
ERR_load_BUF_strings() == 0 ||
|
|
|
|
ERR_load_OBJ_strings() == 0 ||
|
|
|
|
ERR_load_PEM_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifndef OPENSSL_NO_DSA
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_DSA_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_X509_strings() == 0 ||
|
|
|
|
ERR_load_ASN1_strings() == 0 ||
|
|
|
|
ERR_load_CONF_strings() == 0 ||
|
|
|
|
ERR_load_CRYPTO_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifndef OPENSSL_NO_COMP
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_COMP_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_EC
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_EC_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
2016-07-12 13:50:06 +00:00
|
|
|
/* skip ERR_load_SSL_strings() because it is not in this library */
|
|
|
|
ERR_load_BIO_strings() == 0 ||
|
|
|
|
ERR_load_PKCS7_strings() == 0 ||
|
|
|
|
ERR_load_X509V3_strings() == 0 ||
|
|
|
|
ERR_load_PKCS12_strings() == 0 ||
|
|
|
|
ERR_load_RAND_strings() == 0 ||
|
|
|
|
ERR_load_DSO_strings() == 0 ||
|
2016-03-18 19:06:29 +00:00
|
|
|
# ifndef OPENSSL_NO_TS
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_TS_strings() == 0 ||
|
2016-03-18 19:06:29 +00:00
|
|
|
# endif
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifndef OPENSSL_NO_ENGINE
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_ENGINE_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
2016-03-21 16:54:53 +00:00
|
|
|
# ifndef OPENSSL_NO_OCSP
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_OCSP_strings() == 0 ||
|
2016-03-21 16:54:53 +00:00
|
|
|
# endif
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_UI_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifndef OPENSSL_NO_CMS
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_CMS_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
# endif
|
2015-10-19 03:24:16 +00:00
|
|
|
# ifndef OPENSSL_NO_CT
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_CT_strings() == 0 ||
|
2015-10-19 03:24:16 +00:00
|
|
|
# endif
|
2016-07-12 13:50:06 +00:00
|
|
|
ERR_load_ASYNC_strings() == 0 ||
|
2015-01-22 03:40:55 +00:00
|
|
|
#endif
|
2016-12-08 14:51:31 +00:00
|
|
|
ERR_load_KDF_strings() == 0 ||
|
|
|
|
ERR_load_OSSL_STORE_strings() == 0)
|
2016-07-12 13:50:06 +00:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return 1;
|
2015-01-22 03:40:55 +00:00
|
|
|
}
|