|
@@ -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
|