Browse Source

reverted back to correct tag computation for firefox ous

cecylia 6 years ago
parent
commit
7d599716a5
1 changed files with 2 additions and 3 deletions
  1. 2 3
      relay_station/crypto.c

+ 2 - 3
relay_station/crypto.c

@@ -1619,12 +1619,11 @@ void check_handshake(struct packet_info *info){
 		fclose(fp);
 
 		/* check tag*/ 
-                /*TODO: change back!
                 uint8_t context[4 + SSL3_RANDOM_SIZE - PTWIST_TAG_BYTES];
                 memcpy(context, &info->ip_hdr->dst.s_addr, 4);
                 memcpy(context + 4, hello_rand, SSL3_RANDOM_SIZE - PTWIST_TAG_BYTES);
-		res = check_tag(key, privkey, p, (const byte *)context, sizeof(context));*/
-		res = check_tag(key, privkey, p, (const byte *)"context", 7);//TODO: delete
+		res = check_tag(key, privkey, p, (const byte *)context, sizeof(context));
+		//res = check_tag(key, privkey, p, (const byte *)"context", 7);//for phantomjs testing
 		if (!res) {
 
 #ifdef DEBUG_HS