2016-05-18 03:38:09 +08:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 18:52:47 +08:00
|
|
|
*
|
2016-05-18 03:38:09 +08: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 18:52:47 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-04-14 03:54:16 +08:00
|
|
|
#include "internal/err_int.h"
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/asn1.h>
|
|
|
|
#include <openssl/bn.h>
|
2016-03-19 02:30:20 +08:00
|
|
|
#include <openssl/ec.h>
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/buffer.h>
|
|
|
|
#include <openssl/bio.h>
|
2016-03-19 02:30:20 +08:00
|
|
|
#include <openssl/comp.h>
|
|
|
|
#include <openssl/rsa.h>
|
|
|
|
#include <openssl/dh.h>
|
|
|
|
#include <openssl/dsa.h>
|
1999-04-24 06:13:45 +08: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-15 01:28:48 +08:00
|
|
|
#include <openssl/rand.h>
|
2016-03-23 20:54:52 +08:00
|
|
|
#include "internal/dso.h"
|
2016-03-19 02:30:20 +08:00
|
|
|
#include <openssl/engine.h>
|
2004-04-20 01:46:04 +08:00
|
|
|
#include <openssl/ui.h>
|
2001-01-05 03:53:48 +08:00
|
|
|
#include <openssl/ocsp.h>
|
2000-10-27 05:07:28 +08:00
|
|
|
#include <openssl/err.h>
|
2006-02-13 07:11:56 +08:00
|
|
|
#include <openssl/ts.h>
|
2016-03-19 02:30:20 +08:00
|
|
|
#include <openssl/cms.h>
|
|
|
|
#include <openssl/ct.h>
|
2015-10-06 21:47:00 +08:00
|
|
|
#include <openssl/async.h>
|
2016-03-02 12:11:02 +08:00
|
|
|
#include <openssl/kdf.h>
|
2016-12-08 22:51:31 +08:00
|
|
|
#include <openssl/store.h>
|
2008-10-27 02:40:52 +08:00
|
|
|
|
2016-07-12 21:50:06 +08:00
|
|
|
int err_load_crypto_strings_int(void)
|
2015-01-22 11:40:55 +08:00
|
|
|
{
|
2016-07-12 21:50:06 +08:00
|
|
|
if (
|
2001-02-20 00:06:34 +08:00
|
|
|
#ifndef OPENSSL_NO_ERR
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_ERR_strings() == 0 || /* include error strings for SYSerr */
|
|
|
|
ERR_load_BN_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# ifndef OPENSSL_NO_RSA
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_RSA_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_DH
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_DH_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_EVP_strings() == 0 ||
|
|
|
|
ERR_load_BUF_strings() == 0 ||
|
|
|
|
ERR_load_OBJ_strings() == 0 ||
|
|
|
|
ERR_load_PEM_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# ifndef OPENSSL_NO_DSA
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_DSA_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_X509_strings() == 0 ||
|
|
|
|
ERR_load_ASN1_strings() == 0 ||
|
|
|
|
ERR_load_CONF_strings() == 0 ||
|
|
|
|
ERR_load_CRYPTO_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# ifndef OPENSSL_NO_COMP
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_COMP_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_EC
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_EC_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
2016-07-12 21:50:06 +08: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-19 03:06:29 +08:00
|
|
|
# ifndef OPENSSL_NO_TS
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_TS_strings() == 0 ||
|
2016-03-19 03:06:29 +08:00
|
|
|
# endif
|
2015-01-22 11:40:55 +08:00
|
|
|
# ifndef OPENSSL_NO_ENGINE
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_ENGINE_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
2016-03-22 00:54:53 +08:00
|
|
|
# ifndef OPENSSL_NO_OCSP
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_OCSP_strings() == 0 ||
|
2016-03-22 00:54:53 +08:00
|
|
|
# endif
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_UI_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# ifndef OPENSSL_NO_CMS
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_CMS_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
# endif
|
2015-10-19 11:24:16 +08:00
|
|
|
# ifndef OPENSSL_NO_CT
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_CT_strings() == 0 ||
|
2015-10-19 11:24:16 +08:00
|
|
|
# endif
|
2016-07-12 21:50:06 +08:00
|
|
|
ERR_load_ASYNC_strings() == 0 ||
|
2015-01-22 11:40:55 +08:00
|
|
|
#endif
|
2016-12-08 22:51:31 +08:00
|
|
|
ERR_load_KDF_strings() == 0 ||
|
|
|
|
ERR_load_OSSL_STORE_strings() == 0)
|
2016-07-12 21:50:06 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return 1;
|
2015-01-22 11:40:55 +08:00
|
|
|
}
|