diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-04 09:13:50 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-04 09:13:53 +0200 |
commit | e39ddd163420e36f8852d2fddc0a26d4b827aef4 (patch) | |
tree | 9c5306b58e8e64af1395a09ab957497d4654b34e | |
parent | 460955dc2ecd8b5dea082a827fadbd908f50b7d8 (diff) | |
download | gnutls-e39ddd163420e36f8852d2fddc0a26d4b827aef4.tar.gz |
tests: use the 'b' modifier for writing binary data in set_x509_key_file_der
This allows the test to operate properly on windows systems.
-rw-r--r-- | tests/set_x509_key_file_der.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/set_x509_key_file_der.c b/tests/set_x509_key_file_der.c index 52c7c1e00b..454ca4beec 100644 --- a/tests/set_x509_key_file_der.c +++ b/tests/set_x509_key_file_der.c @@ -65,7 +65,7 @@ static void write_der(const char *file, const char *header, const char *ipem) fail("error: %s\n", gnutls_strerror(ret)); } - fp = fopen(file, "w"); + fp = fopen(file, "wb"); if (fp == NULL) fail("error in fopen\n"); |