lib/hcrypto/test_*: Use "rb" when opening binary files

This commit is contained in:
Asanka Herath
2010-06-18 17:25:23 -04:00
parent e88a1d83c6
commit 2730cfc919
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);