fix for build with WOLFSSL_SGX

This commit is contained in:
Jacob Barthelmeh
2021-10-27 13:22:45 -06:00
parent 3d5eea8f56
commit 00249b70ae
2 changed files with 4 additions and 1 deletions

View File

@ -28206,7 +28206,7 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void)
static void test_wc_PKCS7_EncodeEncryptedData (void) static void test_wc_PKCS7_EncodeEncryptedData (void)
{ {
#if defined(HAVE_PKCS7) && !defined(NO_PKCS7_ENCRYPTED_DATA) #if defined(HAVE_PKCS7) && !defined(NO_PKCS7_ENCRYPTED_DATA)
PKCS7* pkcs7; PKCS7* pkcs7 = NULL;
byte* tmpBytePtr = NULL; byte* tmpBytePtr = NULL;
byte encrypted[TWOK_BUF]; byte encrypted[TWOK_BUF];
byte decoded[TWOK_BUF]; byte decoded[TWOK_BUF];

View File

@ -320,6 +320,9 @@
#elif defined(WOLFSSL_LINUXKM) #elif defined(WOLFSSL_LINUXKM)
#define SEND_FUNCTION linuxkm_send #define SEND_FUNCTION linuxkm_send
#define RECV_FUNCTION linuxkm_recv #define RECV_FUNCTION linuxkm_recv
#elif defined(WOLFSSL_SGX)
#define SEND_FUNCTION send
#define RECV_FUNCTION recv
#else #else
#define SEND_FUNCTION send #define SEND_FUNCTION send
#define RECV_FUNCTION recv #define RECV_FUNCTION recv