work on cyassl -> wolfssl compatibility

This commit is contained in:
Jacob Barthelmeh 2015-10-20 15:25:00 -06:00
parent 87668e7acd
commit f64f326ab3
4 changed files with 38 additions and 1 deletions

View File

@ -1,3 +1,12 @@
/* dsa.h for openSSL */
#ifndef CYASSL_OPENSSL_DSA
#define CYASSL_OPENSSL_DSA
#define CyaSSL_DSA_LoadDer wolfSSL_DSA_LoadDer
#define CyaSSL_DSA_do_sign wolfSSL_DSA_do_sign
#include <cyassl/openssl/ssl.h>
#include <wolfssl/openssl/dsa.h>
#endif

View File

@ -24,4 +24,17 @@
*
*/
#ifndef CYASSL_OPENSSL_EVP
#define CYASSL_OPENSSL_EVP
#define CyaSSL_StoreExternalIV wolfSSL_StoreExternalIV
#define CyaSSL_SetInternalIV wolfSSL_SetInternalIV
#define CYASSL_EVP_MD WOLFSSL_EVP_MD
#define CyaSSL_EVP_X_STATE wolfSSL_EVP_X_STATE
#define CyaSSL_EVP_X_STATE_LEN wolfSSL_EVP_X_STATE_LEN
#define CyaSSL_3des_iv wolfSSL_3des_iv
#define CyaSSL_aes_ctr_iv wolfSSL_aes_ctr_iv
#include <wolfssl/openssl/evp.h>
#endif

View File

@ -1,3 +1,12 @@
/* rsa.h for openSSL */
#ifndef CYASSL_OPENSSL_RSA
#define CYASSL_OPENSSL_RSA
#define CyaSSL_RSA_GenAdd wolfSSL_RSA_GenAdd
#define CyaSSL_RSA_LoadDer wolfSSL_RSA_LoadDer
#include <cyassl/openssl/ssl.h>
#include <wolfssl/openssl/rsa.h>
#endif

View File

@ -20,8 +20,14 @@
*/
/* ssl.h defines openssl compatibility layer
/* ssl.h defines openssl compatibility layer
*
*/
#ifndef CYASSL_OPENSSL_H_
#define CYASSL_OPENSSL_H_
#include <cyassl/ssl.h>
#include <wolfssl/openssl/ssl.h>
#endif