From: xtkoba <69125751+xtkoba@users.noreply.github.com> Date: Fri, 2 Sep 2022 07:44:17 +0000 (+0900) Subject: test/pkcs12_api_test.c: fix failure on MinGW X-Git-Tag: openssl-3.2.0-alpha1~2126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=856f2aa7be6bb59bc72493845d92e31ef0523c79;p=thirdparty%2Fopenssl.git 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) --- 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;