From: Ralph Dolmans Date: Thu, 19 Mar 2020 13:00:33 +0000 (+0100) Subject: - Fix #158: open tls-session-ticket-keys as binary, for Windows. By Daisuke X-Git-Tag: release-1.11.0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c03028fa3dbdd7c4523a25ef7464f699fd4af1a;p=thirdparty%2Funbound.git - Fix #158: open tls-session-ticket-keys as binary, for Windows. By Daisuke HIGASHI. --- 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);