Browse Source

Temporary commit

dettanym 4 years ago
parent
commit
7071d76ee1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      App/protobufLAInitiator.cpp
  2. 1 1
      Decryptor/LA.cpp

+ 1 - 1
App/protobufLAInitiator.cpp

@@ -35,7 +35,7 @@ namespace protobufLAInitiator
   // process msg2 and generate msg3
   Decryptor_exchange_report_wrapper(own_enclave_id, &ret_status, &dh_msg2, &dh_msg3, session_id);
   if(ret_status!=SGX_SUCCESS)
-    return 0x35;
+    return ret_status;
 
   // convert msg3 sgx_dh_msg3_t object to a protobuf msg3 object.
   protobufSgxTransformsInitiator::encode_msg3_to_protobuf(protobuf_msg3, &dh_msg3);

+ 1 - 1
Decryptor/LA.cpp

@@ -86,7 +86,7 @@
         //Process message 2 from source enclave and obtain message 3
         status = sgx_dh_responder_proc_msg2(dh_msg2, dh_msg3, &sgx_dh_session, dh_aek, initiator_identity);
         if(SGX_SUCCESS != status)
-            return status;
+            return 0x33;// status;
 
         //Verify source enclave's trust
         // verify_return = Decryptor::verify_peer_enclave_trust(initiator_identity.mr_enclave.m, initiator_identity.mr_signer.m, dh_aek);