TLS: increase size of line buffer for reading keylog file

Previous buffer size was truncating 2048 and 4096 bits DH pre-master
secrets (PMS_CLIENT_RANDOM). New size allows to read DH pre-master
secrets up to 4096 bits.

Change-Id: Ib1bb8946f9c81b4b8e85f82ca7401b3cc9901a1f
Reviewed-on: https://code.wireshark.org/review/33722
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Anaël Fiaux 2019-06-24 01:14:31 +02:00 committed by Alexis La Goutte
parent 3f12d58a62
commit 641d4bbea4
1 changed files with 1 additions and 1 deletions

View File

@ -5352,7 +5352,7 @@ ssl_load_keyfile(const gchar *tls_keylog_filename, FILE **keylog_file,
}
for (;;) {
char buf[512], *line;
char buf[1110], *line;
line = fgets(buf, sizeof(buf), *keylog_file);
if (!line) {
if (feof(*keylog_file)) {