diff --git a/Linux/sgx/libsgx_tsgxssl/tpthread.cpp b/Linux/sgx/libsgx_tsgxssl/tpthread.cpp index 00dcafb2..a22dc81a 100644 --- a/Linux/sgx/libsgx_tsgxssl/tpthread.cpp +++ b/Linux/sgx/libsgx_tsgxssl/tpthread.cpp @@ -278,17 +278,6 @@ int sgxssl_pthread_setspecific (pthread_key_t key, const void *data) return 0; } -pthread_t sgxssl_pthread_self (void) -{ - FSTART; - - sgx_thread_t thread_self = sgx_thread_self(); - - FEND; - - return thread_self; -} - //Thread forking isn't supported inside enclave. int sgxssl_pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) { @@ -300,20 +289,5 @@ int sgxssl_pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*ch return EPERM; } -// Return 0 if the threads are not equal -int sgxssl_pthread_equal (pthread_t thread1, pthread_t thread2) -{ - FSTART; - - int retval = FALSE; - - if (thread1 == thread2) - retval = TRUE; - - FEND; - - return retval; -} - } diff --git a/Linux/sgx/test_app/enclave/TestEnclave.edl b/Linux/sgx/test_app/enclave/TestEnclave.edl index d0a03337..ce56474d 100644 --- a/Linux/sgx/test_app/enclave/TestEnclave.edl +++ b/Linux/sgx/test_app/enclave/TestEnclave.edl @@ -34,7 +34,7 @@ enclave { from "sgx_tsgxssl.edl" import *; - +from "sgx_pthread.edl" import *; /* * uprint - invokes OCALL to display string buffer inside the enclave. * [in]: copy the string buffer to App outside. diff --git a/openssl_source/bypass_to_sgxssl.h b/openssl_source/bypass_to_sgxssl.h index 0a8f32fb..b83dfd07 100644 --- a/openssl_source/bypass_to_sgxssl.h +++ b/openssl_source/bypass_to_sgxssl.h @@ -255,8 +255,6 @@ char * sgxssl___builtin___strcpy_chk(char *dest, const char *src, unsigned int d #define pthread_setspecific sgxssl_pthread_setspecific #define pthread_getspecific sgxssl_pthread_getspecific #define pthread_key_delete sgxssl_pthread_key_delete -#define pthread_self sgxssl_pthread_self -#define pthread_equal sgxssl_pthread_equal #define __ctype_b_loc sgxssl___ctype_b_loc #define __ctype_tolower_loc sgxssl___ctype_tolower_loc