fix type of example method

pull/191/head
Jacob Barthelmeh 2020-02-18 09:34:48 -07:00
parent 857a43aae7
commit 4ebfc10efc
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ int client_connect(sgx_enclave_id_t id)
struct sockaddr_in servAddr; /* struct for server address */ struct sockaddr_in servAddr; /* struct for server address */
int ret = 0; /* variable for error checking */ int ret = 0; /* variable for error checking */
WOLFSSL_METHOD* method; long method;
long ctx; long ctx;
long ssl; long ssl;
@ -82,7 +82,7 @@ int client_connect(sgx_enclave_id_t id)
enc_wolfSSL_Init(id, &sgxStatus); enc_wolfSSL_Init(id, &sgxStatus);
sgxStatus = enc_wolfTLSv1_2_client_method(id, &method); 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"); printf("wolfTLSv1_2_client_method failure\n");
return EXIT_FAILURE; return EXIT_FAILURE;
} }

View File

@ -59,7 +59,7 @@ int server_connect(sgx_enclave_id_t id)
/* declare wolfSSL objects */ /* declare wolfSSL objects */
long ctx; long ctx;
long ssl; long ssl;
WOLFSSL_METHOD* method; long method;
@ -83,7 +83,7 @@ int server_connect(sgx_enclave_id_t id)
/* Create and initialize WOLFSSL_CTX */ /* Create and initialize WOLFSSL_CTX */
sgxStatus = enc_wolfTLSv1_2_server_method(id, &method); 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"); printf("wolfTLSv1_2_server_method failure\n");
return EXIT_FAILURE; return EXIT_FAILURE;
} }