diff --git a/doc/Changelog b/doc/Changelog index 1183db3f4..2466f16f5 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,7 @@ 19 March 2020: Ralph - Merge PR#191: Update iOS testing on Travis, by Jeffrey Walton. + - Fix #158: open tls-session-ticket-keys as binary, for Windows. By + Daisuke HIGASHI. 16 March 2020: Wouter - Fix #192: In the unbound-checkconf tool, the module config of diff --git a/util/net_help.c b/util/net_help.c index 8f75da07f..135d33427 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -1362,7 +1362,7 @@ int listen_sslctx_setup_ticket_keys(void* sslctx, struct config_strlist* tls_ses if(!data) return 0; - f = fopen(p->str, "r"); + f = fopen(p->str, "rb"); if(!f) { log_err("could not read tls-session-ticket-key %s: %s", p->str, strerror(errno)); free(data);