feat(tsg_ssl_utils): client hello识别增加是否为esni的结果

This commit is contained in:
yangwei
2021-04-08 18:08:21 +08:00
committed by 刘学利
parent 441b0d1584
commit a339d39ee3
2 changed files with 6 additions and 1 deletions

View File

@@ -236,6 +236,10 @@ static enum chello_parse_result parse_extensions(const unsigned char* buff, size
return result;
}
}
if (buff[pos] == 0xff && buff[pos + 1] == 0xce)//identify encrypt sni
{
chello->is_encrypt_sni = 1;
}
pos += (4 + len);
}
/* Check we ended where we expected to */