2016-05-17 19:38:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 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>
|
2016-04-13 19:54:16 +00:00
|
|
|
#include "internal/err_int.h"
|
1999-04-23 22:13:45 +00:00
|
|
|
#include <openssl/asn1.h>
|
|
|
|
#include <openssl/bn.h>
|
2016-03-18 18:30:20 +00:00
|
|
|
#include <openssl/ec.h>
|
1999-04-23 22:13:45 +00:00
|
|
|
#include <openssl/buffer.h>
|
|
|
|
#include <openssl/bio.h>
|
2016-03-18 18:30:20 +00:00
|
|
|
#include <openssl/comp.h>
|
|
|
|
#include <openssl/rsa.h>
|
|
|
|
#include <openssl/dh.h>
|
|
|
|
#include <openssl/dsa.h>
|
1999-04-23 22:13:45 +00:00
|
|
|
#include <openssl/evp.h>
|
|
|
|
#include <openssl/objects.h>
|
|
|
|
#include <openssl/pem2.h>
|
|
|
|
#include <openssl/x509.h>
|
|
|
|
#include <openssl/x509v3.h>
|
|
|
|
#include <openssl/conf.h>
|
|
|
|
#include <openssl/pkcs12.h>
|
2000-01-14 17:28:48 +00:00
|
|
|
#include <openssl/rand.h>
|
2016-03-23 12:54:52 +00:00
|
|
|
#include "internal/dso.h"
|
2016-03-18 18:30:20 +00:00
|
|
|
#include <openssl/engine.h>
|
2004-04-19 17:46:04 +00:00
|
|
|
#include <openssl/ui.h>
|
2001-01-04 19:53:48 +00:00
|
|
|
#include <openssl/ocsp.h>
|
2000-10-26 21:07:28 +00:00
|
|
|
#include <openssl/err.h>
|
2011-02-03 16:03:21 +00:00
|
|
|
#ifdef OPENSSL_FIPS
|
2015-01-22 03:40:55 +00:00
|
|
|
# include <openssl/fips.h>
|
2011-02-03 16:03:21 +00:00
|
|
|
#endif
|
2006-02-12 23:11:56 +00:00
|
|
|
#include <openssl/ts.h>
|
2016-03-18 18:30:20 +00:00
|
|
|
#include <openssl/cms.h>
|
|
|
|
#include <openssl/ct.h>
|
2015-10-06 13:47:00 +00:00
|
|
|
#include <openssl/async.h>
|
2016-03-02 04:11:02 +00:00
|
|
|
#include <openssl/kdf.h>
|
2008-10-26 18:40:52 +00:00
|
|
|
|
2016-04-12 11:20:16 +00:00
|
|
|
void err_load_crypto_strings_int(void)
|
2015-01-22 03:40:55 +00:00
|
|
|
{
|
2011-01-26 15:53:07 +00:00
|
|
|
#ifdef OPENSSL_FIPS
|
2015-01-22 03:40:55 +00:00
|
|
|
FIPS_set_error_callbacks(ERR_put_error, ERR_add_error_vdata);
|
2011-01-26 15:53:07 +00:00
|
|
|
#endif
|
2001-02-19 16:06:34 +00:00
|
|
|
#ifndef OPENSSL_NO_ERR
|
2015-01-22 03:40:55 +00:00
|
|
|
ERR_load_ERR_strings(); /* include error strings for SYSerr */
|
|
|
|
ERR_load_BN_strings();
|
|
|
|
# ifndef OPENSSL_NO_RSA
|
|
|
|
ERR_load_RSA_strings();
|
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_DH
|
|
|
|
ERR_load_DH_strings();
|
|
|
|
# endif
|
|
|
|
ERR_load_EVP_strings();
|
|
|
|
ERR_load_BUF_strings();
|
|
|
|
ERR_load_OBJ_strings();
|
|
|
|
ERR_load_PEM_strings();
|
|
|
|
# ifndef OPENSSL_NO_DSA
|
|
|
|
ERR_load_DSA_strings();
|
|
|
|
# endif
|
|
|
|
ERR_load_X509_strings();
|
|
|
|
ERR_load_ASN1_strings();
|
|
|
|
ERR_load_CONF_strings();
|
|
|
|
ERR_load_CRYPTO_strings();
|
|
|
|
# ifndef OPENSSL_NO_COMP
|
|
|
|
ERR_load_COMP_strings();
|
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_EC
|
|
|
|
ERR_load_EC_strings();
|
|
|
|
# endif
|
|
|
|
/* skip ERR_load_SSL_strings() because it is not in this library */
|
|
|
|
ERR_load_BIO_strings();
|
|
|
|
ERR_load_PKCS7_strings();
|
|
|
|
ERR_load_X509V3_strings();
|
|
|
|
ERR_load_PKCS12_strings();
|
|
|
|
ERR_load_RAND_strings();
|
|
|
|
ERR_load_DSO_strings();
|
2016-03-18 19:06:29 +00:00
|
|
|
# ifndef OPENSSL_NO_TS
|
2015-01-22 03:40:55 +00:00
|
|
|
ERR_load_TS_strings();
|
2016-03-18 19:06:29 +00:00
|
|
|
# endif
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifndef OPENSSL_NO_ENGINE
|
|
|
|
ERR_load_ENGINE_strings();
|
|
|
|
# endif
|
2016-03-21 16:54:53 +00:00
|
|
|
# ifndef OPENSSL_NO_OCSP
|
2015-01-22 03:40:55 +00:00
|
|
|
ERR_load_OCSP_strings();
|
2016-03-21 16:54:53 +00:00
|
|
|
# endif
|
2016-03-21 17:08:57 +00:00
|
|
|
#ifndef OPENSSL_NO_UI
|
2015-01-22 03:40:55 +00:00
|
|
|
ERR_load_UI_strings();
|
2016-03-21 17:08:57 +00:00
|
|
|
#endif
|
2015-01-22 03:40:55 +00:00
|
|
|
# ifdef OPENSSL_FIPS
|
|
|
|
ERR_load_FIPS_strings();
|
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_CMS
|
|
|
|
ERR_load_CMS_strings();
|
|
|
|
# endif
|
2015-10-19 03:24:16 +00:00
|
|
|
# ifndef OPENSSL_NO_CT
|
|
|
|
ERR_load_CT_strings();
|
|
|
|
# endif
|
2015-10-06 13:47:00 +00:00
|
|
|
ERR_load_ASYNC_strings();
|
2015-01-22 03:40:55 +00:00
|
|
|
#endif
|
2016-03-02 04:11:02 +00:00
|
|
|
ERR_load_KDF_strings();
|
2015-01-22 03:40:55 +00:00
|
|
|
}
|