summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorxtkoba <69125751+xtkoba@users.noreply.github.com>2022-09-02 09:44:17 +0200
committerTomas Mraz <tomas@openssl.org>2022-09-05 15:49:33 +0200
commit856f2aa7be6bb59bc72493845d92e31ef0523c79 (patch)
tree7f975c9f84bc44f3b162ef6685fd520506ed5997 /test
parentlist: add a doubly linked list type. (diff)
downloadopenssl-856f2aa7be6bb59bc72493845d92e31ef0523c79.tar.xz
openssl-856f2aa7be6bb59bc72493845d92e31ef0523c79.zip
test/pkcs12_api_test.c: fix failure on MinGW
Use binary mode when opening a file. Partially fixes #18017. Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19117)
Diffstat (limited to 'test')
-rw-r--r--test/pkcs12_api_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pkcs12_api_test.c b/test/pkcs12_api_test.c
index f3648706f6..51976edea6 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;