diff options
author | xtkoba <69125751+xtkoba@users.noreply.github.com> | 2022-09-02 09:44:17 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-09-05 15:49:33 +0200 |
commit | 856f2aa7be6bb59bc72493845d92e31ef0523c79 (patch) | |
tree | 7f975c9f84bc44f3b162ef6685fd520506ed5997 /test | |
parent | list: add a doubly linked list type. (diff) | |
download | openssl-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.c | 2 |
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; |