forked from wolfSSL/wolfssl
add includes to compatibility
This commit is contained in:
@ -24,6 +24,17 @@
|
|||||||
#ifndef CTAO_CRYPT_ASN_H
|
#ifndef CTAO_CRYPT_ASN_H
|
||||||
#define CTAO_CRYPT_ASN_H
|
#define CTAO_CRYPT_ASN_H
|
||||||
|
|
||||||
|
/* pull in compatibility for each include */
|
||||||
|
#include <cyassl/ctaocrypt/dh.h>
|
||||||
|
#include <cyassl/ctaocrypt/dsa.h>
|
||||||
|
#include <cyassl/ctaocrypt/sha.h>
|
||||||
|
#include <cyassl/ctaocrypt/md5.h>
|
||||||
|
#include <cyassl/ctaocrypt/asn_public.h> /* public interface */
|
||||||
|
#ifdef HAVE_ECC
|
||||||
|
#include <cyassl/ctaocrypt/ecc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/asn.h>
|
#include <wolfssl/wolfcrypt/asn.h>
|
||||||
|
|
||||||
#ifndef WOLFSSL_PEMCERT_TODER_DEFINED
|
#ifndef WOLFSSL_PEMCERT_TODER_DEFINED
|
||||||
|
@ -23,8 +23,15 @@
|
|||||||
#ifndef CTAO_CRYPT_ASN_PUBLIC_H
|
#ifndef CTAO_CRYPT_ASN_PUBLIC_H
|
||||||
#define CTAO_CRYPT_ASN_PUBLIC_H
|
#define CTAO_CRYPT_ASN_PUBLIC_H
|
||||||
|
|
||||||
|
/* pull in compatibility for each of the includes */
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
#include <cyassl/ctaocrypt/types.h>
|
||||||
#include <wolfssl/wolfrypt/asn_public.h>
|
#include <cyassl/ctaocrypt/types.h>
|
||||||
|
#include <cyassl/ctaocrypt/ecc.h>
|
||||||
|
#ifdef WOLFSSL_CERT_GEN
|
||||||
|
#include <cyassl/ctaocrypt/rsa.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <wolfssl/wolfcrypt/asn_public.h>
|
||||||
#ifdef WOLFSSL_CERT_GEN
|
#ifdef WOLFSSL_CERT_GEN
|
||||||
#define InitCert wc_InitCert
|
#define InitCert wc_InitCert
|
||||||
#define MakeCert wc_MakeCert
|
#define MakeCert wc_MakeCert
|
||||||
|
@ -25,6 +25,13 @@
|
|||||||
#ifndef CTAO_CRYPT_PKCS7_H
|
#ifndef CTAO_CRYPT_PKCS7_H
|
||||||
#define CTAO_CRYPT_PKCS7_H
|
#define CTAO_CRYPT_PKCS7_H
|
||||||
|
|
||||||
|
/* pull in compatibility for old includes */
|
||||||
|
#include <cyassl/ctaocrypt/types.h>
|
||||||
|
#include <cyassl/ctaocrypt/asn.h>
|
||||||
|
#include <cyassl/ctaocrypt/asn_public.h>
|
||||||
|
#include <cyassl/ctaocrypt/random.h>
|
||||||
|
#include <cyassl/ctaocrypt/des3.h>
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/pkcs7.h>
|
#include <wolfssl/wolfcrypt/pkcs7.h>
|
||||||
|
|
||||||
/* for pkcs7 reverse compatibility */
|
/* for pkcs7 reverse compatibility */
|
||||||
|
@ -35,25 +35,5 @@
|
|||||||
#define cyassl_word wolfssl_word
|
#define cyassl_word wolfssl_word
|
||||||
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
|
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
|
||||||
|
|
||||||
/* if macros need to be reverted back to previous name for fips */
|
|
||||||
// #define WOLFSSL_MAX_ERROR_SZ CYASSL_MAX_ERROR_SZ
|
|
||||||
//
|
|
||||||
// #define WOLFSSL_WORD_SIZE CYASSL_WORD_SIZE
|
|
||||||
// #define WOLFSSL_BIT_SIZE CYASSL_BIT_SIZE
|
|
||||||
// #define WOLFSSL_MAX_16BIT CYASSL_MAX_16BIT
|
|
||||||
// #define WOLFSSL_MAX_ERROR_SZ CYASSL_MAX_ERROR_SZ
|
|
||||||
// #define wolfssl_word cyassl_word
|
|
||||||
///* memory macros */
|
|
||||||
// /* when using fips map wolfSSL to CyaSSL*/
|
|
||||||
// #define wolfSSL_Malloc_cb CyaSSL_Malloc_cb
|
|
||||||
// #define wolfSSL_Free_cb CyaSSL_Free_cb
|
|
||||||
// #define wolfSSL_Realloc_cb CyaSSL_Realloc_cb
|
|
||||||
// #define wolfSSL_SetAllocators CyaSSL_SetAllocators
|
|
||||||
//
|
|
||||||
// /* Public in case user app wants to use XMALLOC/XFREE */
|
|
||||||
// #define wolfSSL_Malloc CyaSSL_Malloc
|
|
||||||
// #define wolfSSL_Free CyaSSL_Free
|
|
||||||
// #define wolfSSL_Realloc CyaSSL_Realloc
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_TYPES_H */
|
#endif /* CTAO_CRYPT_TYPES_H */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user