lib/hcrypto/test_*: Use "rb" when opening binary files
This commit is contained in:
@@ -199,7 +199,7 @@ main(int argc, char **argv)
|
||||
RSA *rsa;
|
||||
FILE *f;
|
||||
|
||||
f = fopen(rsa_flag, "r");
|
||||
f = fopen(rsa_flag, "rb");
|
||||
if (f == NULL)
|
||||
err(1, "could not open file %s", rsa_flag);
|
||||
|
||||
|
@@ -157,7 +157,7 @@ read_key(ENGINE *engine, const char *rsa_key)
|
||||
RSA *rsa;
|
||||
FILE *f;
|
||||
|
||||
f = fopen(rsa_key, "r");
|
||||
f = fopen(rsa_key, "rb");
|
||||
if (f == NULL)
|
||||
err(1, "could not open file %s", rsa_key);
|
||||
rk_cloexec_file(f);
|
||||
|
Reference in New Issue
Block a user