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>
|
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>
|
2016-12-08 14:51:31 +00:00
|
|
|
#include <openssl/store.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
|
|
|
}
|