From 856f2aa7be6bb59bc72493845d92e31ef0523c79 Mon Sep 17 00:00:00 2001 From: xtkoba <69125751+xtkoba@users.noreply.github.com> Date: Fri, 2 Sep 2022 16:44:17 +0900 Subject: [PATCH] test/pkcs12_api_test.c: fix failure on MinGW Use binary mode when opening a file. Partially fixes #18017. Reviewed-by: Kurt Roeckx Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19117) --- test/pkcs12_api_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pkcs12_api_test.c b/test/pkcs12_api_test.c index f3648706f69..51976edea66 100644 --- a/test/pkcs12_api_test.c +++ b/test/pkcs12_api_test.c @@ -35,7 +35,7 @@ static PKCS12 *PKCS12_load(const char *fpath) BIO *bio = NULL; PKCS12 *p12 = NULL; - bio = BIO_new_file(fpath, "r"); + bio = BIO_new_file(fpath, "rb"); if (!TEST_ptr(bio)) goto err; -- 2.47.2