forked from wolfSSL/wolfssl
cleanup conditional header inclusion
This commit is contained in:
@@ -26,20 +26,44 @@
|
|||||||
|
|
||||||
#include <wolfssl/wolfcrypt/types.h>
|
#include <wolfssl/wolfcrypt/types.h>
|
||||||
#include <wolfssl/ssl.h>
|
#include <wolfssl/ssl.h>
|
||||||
#include <wolfssl/crl.h>
|
#ifdef HAVE_CRL
|
||||||
|
#include <wolfssl/crl.h>
|
||||||
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/random.h>
|
#include <wolfssl/wolfcrypt/random.h>
|
||||||
#include <wolfssl/wolfcrypt/des3.h>
|
#ifndef NO_DES3
|
||||||
#include <wolfssl/wolfcrypt/hc128.h>
|
#include <wolfssl/wolfcrypt/des3.h>
|
||||||
#include <wolfssl/wolfcrypt/rabbit.h>
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/chacha.h>
|
#ifndef NO_HC128
|
||||||
#include <wolfssl/wolfcrypt/asn.h>
|
#include <wolfssl/wolfcrypt/hc128.h>
|
||||||
#include <wolfssl/wolfcrypt/md5.h>
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/sha.h>
|
#ifndef NO_RABBIT
|
||||||
#include <wolfssl/wolfcrypt/aes.h>
|
#include <wolfssl/wolfcrypt/rabbit.h>
|
||||||
#include <wolfssl/wolfcrypt/poly1305.h>
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/camellia.h>
|
#ifdef HAVE_CHACHA
|
||||||
|
#include <wolfssl/wolfcrypt/chacha.h>
|
||||||
|
#endif
|
||||||
|
#ifndef NO_ASN
|
||||||
|
#include <wolfssl/wolfcrypt/asn.h>
|
||||||
|
#endif
|
||||||
|
#ifndef NO_MD5
|
||||||
|
#include <wolfssl/wolfcrypt/md5.h>
|
||||||
|
#endif
|
||||||
|
#ifndef NO_SHA
|
||||||
|
#include <wolfssl/wolfcrypt/sha.h>
|
||||||
|
#endif
|
||||||
|
#ifndef NO_AES
|
||||||
|
#include <wolfssl/wolfcrypt/aes.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_POLY1305
|
||||||
|
#include <wolfssl/wolfcrypt/poly1305.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_CAMELLIA
|
||||||
|
#include <wolfssl/wolfcrypt/camellia.h>
|
||||||
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/logging.h>
|
#include <wolfssl/wolfcrypt/logging.h>
|
||||||
#include <wolfssl/wolfcrypt/hmac.h>
|
#ifndef NO_HMAC
|
||||||
|
#include <wolfssl/wolfcrypt/hmac.h>
|
||||||
|
#endif
|
||||||
#ifndef NO_RC4
|
#ifndef NO_RC4
|
||||||
#include <wolfssl/wolfcrypt/arc4.h>
|
#include <wolfssl/wolfcrypt/arc4.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -25,17 +25,27 @@
|
|||||||
#define WOLF_CRYPT_ASN_H
|
#define WOLF_CRYPT_ASN_H
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/types.h>
|
#include <wolfssl/wolfcrypt/types.h>
|
||||||
#include <wolfssl/wolfcrypt/rsa.h>
|
#ifndef NO_RSA
|
||||||
|
#include <wolfssl/wolfcrypt/rsa.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* fips declare of RsaPrivateKeyDecode @wc_fips */
|
/* fips declare of RsaPrivateKeyDecode @wc_fips */
|
||||||
#ifdef HAVE_FIPS
|
#if defined(HAVE_FIPS) && !defined(NO_RSA)
|
||||||
#include <cyassl/ctaocrypt/rsa.h>
|
#include <cyassl/ctaocrypt/rsa.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/dh.h>
|
#ifndef NO_DH
|
||||||
#include <wolfssl/wolfcrypt/dsa.h>
|
#include <wolfssl/wolfcrypt/dh.h>
|
||||||
#include <wolfssl/wolfcrypt/sha.h>
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/md5.h>
|
#ifndef NO_DSA
|
||||||
|
#include <wolfssl/wolfcrypt/dsa.h>
|
||||||
|
#endif
|
||||||
|
#ifndef NO_SHA
|
||||||
|
#include <wolfssl/wolfcrypt/sha.h>
|
||||||
|
#endif
|
||||||
|
#ifndef NO_MD5
|
||||||
|
#include <wolfssl/wolfcrypt/md5.h>
|
||||||
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/asn_public.h> /* public interface */
|
#include <wolfssl/wolfcrypt/asn_public.h> /* public interface */
|
||||||
#ifdef HAVE_ECC
|
#ifdef HAVE_ECC
|
||||||
#include <wolfssl/wolfcrypt/ecc.h>
|
#include <wolfssl/wolfcrypt/ecc.h>
|
||||||
|
@@ -24,8 +24,10 @@
|
|||||||
#define WOLF_CRYPT_ASN_PUBLIC_H
|
#define WOLF_CRYPT_ASN_PUBLIC_H
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/types.h>
|
#include <wolfssl/wolfcrypt/types.h>
|
||||||
#include <wolfssl/wolfcrypt/ecc.h>
|
#ifdef HAVE_ECC
|
||||||
#ifdef WOLFSSL_CERT_GEN
|
#include <wolfssl/wolfcrypt/ecc.h>
|
||||||
|
#endif
|
||||||
|
#if defined(WOLFSSL_CERT_GEN) && !defined(NO_RSA)
|
||||||
#include <wolfssl/wolfcrypt/rsa.h>
|
#include <wolfssl/wolfcrypt/rsa.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -19,6 +19,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CHACHA
|
||||||
|
|
||||||
#ifndef WOLF_CRYPT_CHACHA_H
|
#ifndef WOLF_CRYPT_CHACHA_H
|
||||||
#define WOLF_CRYPT_CHACHA_H
|
#define WOLF_CRYPT_CHACHA_H
|
||||||
|
|
||||||
@@ -51,5 +53,6 @@ WOLFSSL_API int wc_Chacha_SetKey(ChaCha* ctx, const byte* key, word32 keySz);
|
|||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif /* WOLF_CRYPT_CHACHA_H */
|
||||||
|
#endif /* HAVE_CHACHA */
|
||||||
|
|
||||||
|
@@ -26,10 +26,14 @@
|
|||||||
#define WOLF_CRYPT_PKCS7_H
|
#define WOLF_CRYPT_PKCS7_H
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/types.h>
|
#include <wolfssl/wolfcrypt/types.h>
|
||||||
#include <wolfssl/wolfcrypt/asn.h>
|
#ifndef NO_ASN
|
||||||
|
#include <wolfssl/wolfcrypt/asn.h>
|
||||||
|
#endif
|
||||||
#include <wolfssl/wolfcrypt/asn_public.h>
|
#include <wolfssl/wolfcrypt/asn_public.h>
|
||||||
#include <wolfssl/wolfcrypt/random.h>
|
#include <wolfssl/wolfcrypt/random.h>
|
||||||
#include <wolfssl/wolfcrypt/des3.h>
|
#ifndef NO_DES3
|
||||||
|
#include <wolfssl/wolfcrypt/des3.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
Reference in New Issue
Block a user