|
@@ -81,10 +81,10 @@ static uint8_t* default_in_msg_get_buf(NodeCommState &commst,
|
|
|
return new uint8_t[max_plaintext_bytes];
|
|
|
}
|
|
|
|
|
|
-static void default_in_msg_received(NodeCommState &nodest,
|
|
|
+static void unknown_in_msg_received(NodeCommState &nodest,
|
|
|
uint8_t *data, uint32_t plaintext_len, uint32_t)
|
|
|
{
|
|
|
- printf("Received message of %u bytes from node %lu:\n",
|
|
|
+ printf("Received unknown message of %u bytes from node %lu:\n",
|
|
|
plaintext_len, nodest.node_num);
|
|
|
for (uint32_t i=0;i<plaintext_len;++i) {
|
|
|
printf("%02x", data[i]);
|
|
@@ -217,7 +217,7 @@ static void handshake_1_msg_received(NodeCommState &nodest,
|
|
|
false);
|
|
|
}
|
|
|
|
|
|
-// Receive (at the client) the secong handshake message
|
|
|
+// Receive (at the client) the second handshake message
|
|
|
static void handshake_2_msg_received(NodeCommState &nodest,
|
|
|
uint8_t *data, uint32_t plaintext_len, uint32_t)
|
|
|
{
|
|
@@ -330,7 +330,7 @@ static void handshake_2_msg_received(NodeCommState &nodest,
|
|
|
memset(&nodest.in_aes_iv, 0, SGX_AESGCM_IV_SIZE);
|
|
|
nodest.handshake_step = HANDSHAKE_COMPLETE;
|
|
|
nodest.in_msg_get_buf = default_in_msg_get_buf;
|
|
|
- nodest.in_msg_received = default_in_msg_received;
|
|
|
+ nodest.in_msg_received = unknown_in_msg_received;
|
|
|
|
|
|
// Send handshake message 3
|
|
|
nodest.message_start(sizeof(cli_srv_sig), false);
|
|
@@ -381,7 +381,7 @@ static void handshake_3_msg_received(NodeCommState &nodest,
|
|
|
memset(&nodest.in_aes_iv, 0, SGX_AESGCM_IV_SIZE);
|
|
|
nodest.handshake_step = HANDSHAKE_COMPLETE;
|
|
|
nodest.in_msg_get_buf = default_in_msg_get_buf;
|
|
|
- nodest.in_msg_received = default_in_msg_received;
|
|
|
+ nodest.in_msg_received = unknown_in_msg_received;
|
|
|
|
|
|
// Mark the handshake as complete
|
|
|
completed_handshake_counter.inc();
|