Przeglądaj źródła

Rename ecall_authenticate to ecall_ingestion_authenticate

To distinguish it from ecall_storage_authenticate
Ian Goldberg 11 miesięcy temu
rodzic
commit
1ae94b11ed
5 zmienionych plików z 6 dodań i 6 usunięć
  1. 1 1
      App/net.cpp
  2. 1 1
      Enclave/Enclave.edl
  3. 1 1
      Enclave/ingest.cpp
  4. 2 2
      Untrusted/Untrusted.cpp
  5. 1 1
      Untrusted/Untrusted.hpp

+ 1 - 1
App/net.cpp

@@ -335,7 +335,7 @@ void NetIO::ing_authenticate_new_client(tcp::socket* csocket,
             clientid_t c_simid = *((clientid_t *)(auth_message));
             // Read the authentication token
             unsigned char *auth_ptr = auth_message + sizeof(clientid_t);
-            bool ret = ecall_authenticate(c_simid, auth_ptr);
+            bool ret = ecall_ingestion_authenticate(c_simid, auth_ptr);
             free(auth_message);
 
             // Receive client message bundles on this socket

+ 1 - 1
Enclave/Enclave.edl

@@ -48,7 +48,7 @@ enclave {
             [user_check] uint8_t *msgbundle,
             uint32_t num_msgs);
 
-        public bool ecall_authenticate(clientid_t cid,
+        public bool ecall_ingestion_authenticate(clientid_t cid,
             [user_check] uint8_t *auth_string);
 
         public bool ecall_storage_authenticate(clientid_t cid,

+ 1 - 1
Enclave/ingest.cpp

@@ -53,7 +53,7 @@ bool ecall_ingest_msgbundle(clientid_t cid, unsigned char *msgbundle,
     return ret;
 }
 
-bool ecall_authenticate(clientid_t cid, unsigned char *auth_message)
+bool ecall_ingestion_authenticate(clientid_t cid, unsigned char *auth_message)
 {
     bool ret;
     ret = g_ing.authenticate(cid, auth_message);

+ 2 - 2
Untrusted/Untrusted.cpp

@@ -312,10 +312,10 @@ bool ecall_ingest_msgbundle(clientid_t cid, unsigned char *msgbundle,
     return ret;
 }
 
-bool ecall_authenticate(clientid_t cid, unsigned char *auth_string)
+bool ecall_ingestion_authenticate(clientid_t cid, unsigned char *auth_string)
 {
     bool ret;
-    ecall_authenticate(global_eid, &ret, cid, auth_string);
+    ecall_ingestion_authenticate(global_eid, &ret, cid, auth_string);
     return ret;
 }
 

+ 1 - 1
Untrusted/Untrusted.hpp

@@ -42,7 +42,7 @@ void ecall_routing_proceed(std::function<void(uint32_t)> cb);
 bool ecall_ingest_msgbundle(clientid_t cid, unsigned char *msgbundle,
     uint32_t num_msgs);
 
-bool ecall_authenticate(clientid_t cid, unsigned char *auth_string);
+bool ecall_ingestion_authenticate(clientid_t cid, unsigned char *auth_string);
 
 bool ecall_storage_authenticate(clientid_t cid, unsigned char *auth_string);