Skip to content

Commit

Permalink
Fourth commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sassiwalid committed Jul 21, 2018
1 parent 76c7073 commit 02532ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions App/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ int main(int argc, char const *argv[]) {
int i ;
uint32_t ptr;
uint32_t pongVal;
// read the enclave token
FILE *fp = fopen(token_path, "rb");
if (fp == NULL && (fp = fopen(token_path, "wb")) == NULL) {
printf("Warning: Failed to create/open the launch token file \"%s\".\n", token_path);
Expand All @@ -34,11 +35,12 @@ int main(int argc, char const *argv[]) {
printf("Warning: Invalid launch token read from \"%s\".\n",token_path );
}
}
ret = sgx_create_enclave("enclavePing", 1, &token, 0, &pingEnclaveId, NULL);
//
ret = sgx_create_enclave("enclaveping.so", 0, &token, 0, &pingEnclaveId, NULL);
if (ret != SGX_SUCCESS) {
std::cout << "enclave ping not created" << std::endl;
}
ret = sgx_create_enclave("enclavePong", 1, &token , 0, &pongEnclaveId, NULL);
ret = sgx_create_enclave("enclavepong.so", 0, &token , 0, &pongEnclaveId, NULL);
if (ret != SGX_SUCCESS) {
std::cout << "enclave pong not created" << std::endl;
}
Expand Down
Binary file modified App/App.o
Binary file not shown.
Binary file modified app
Binary file not shown.

0 comments on commit 02532ca

Please sign in to comment.