diff --git a/SGX_Linux/untrusted/client-tls.c b/SGX_Linux/untrusted/client-tls.c index 894f10c1..cb715640 100644 --- a/SGX_Linux/untrusted/client-tls.c +++ b/SGX_Linux/untrusted/client-tls.c @@ -39,7 +39,7 @@ int client_connect(sgx_enclave_id_t id) struct sockaddr_in servAddr; /* struct for server address */ int ret = 0; /* variable for error checking */ - WOLFSSL_METHOD* method; + long method; long ctx; long ssl; @@ -82,7 +82,7 @@ int client_connect(sgx_enclave_id_t id) enc_wolfSSL_Init(id, &sgxStatus); sgxStatus = enc_wolfTLSv1_2_client_method(id, &method); - if (sgxStatus != SGX_SUCCESS || method == NULL) { + if (sgxStatus != SGX_SUCCESS) { printf("wolfTLSv1_2_client_method failure\n"); return EXIT_FAILURE; } diff --git a/SGX_Linux/untrusted/server-tls.c b/SGX_Linux/untrusted/server-tls.c index a7ec1574..6e8715d7 100644 --- a/SGX_Linux/untrusted/server-tls.c +++ b/SGX_Linux/untrusted/server-tls.c @@ -59,7 +59,7 @@ int server_connect(sgx_enclave_id_t id) /* declare wolfSSL objects */ long ctx; long ssl; - WOLFSSL_METHOD* method; + long method; @@ -83,7 +83,7 @@ int server_connect(sgx_enclave_id_t id) /* Create and initialize WOLFSSL_CTX */ sgxStatus = enc_wolfTLSv1_2_server_method(id, &method); - if (sgxStatus != SGX_SUCCESS || method == NULL) { + if (sgxStatus != SGX_SUCCESS) { printf("wolfTLSv1_2_server_method failure\n"); return EXIT_FAILURE; }