aboutsummaryrefslogtreecommitdiffstats
path: root/src/pki/commands/pkcs7.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-06-04 16:26:58 +0200
committerMartin Willi <martin@revosec.ch>2014-06-04 16:26:58 +0200
commit8c55f8ef42816a695895990cf89697a30c235355 (patch)
treec4aa8a3f0f08166b37369bb93132d0ece470af42 /src/pki/commands/pkcs7.c
parentb4c51061c3c649e948324d1f3ad37ef6e48f8b96 (diff)
parentd930d184177ef352c4b5def4e5848463819435ec (diff)
downloadstrongswan-8c55f8ef42816a695895990cf89697a30c235355.tar.bz2
strongswan-8c55f8ef42816a695895990cf89697a30c235355.tar.xz
Merge branch 'win'
Ports the strongSwan core libraries and some plugins to the Windows platform using a MinGW based toolchain. Beside generic platform abstraction and the windows.[ch] compatibility layer, this merge introduces a Windows native threading backend and a charon-svc Windows IKE service. Travis adds a MinGW cross-compile build to Windows, and further enables -Werror to let builds fail for all compiler warnings with gcc and Clang.
Diffstat (limited to 'src/pki/commands/pkcs7.c')
-rw-r--r--src/pki/commands/pkcs7.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pki/commands/pkcs7.c b/src/pki/commands/pkcs7.c
index 6c75693ab..28bcd1397 100644
--- a/src/pki/commands/pkcs7.c
+++ b/src/pki/commands/pkcs7.c
@@ -58,6 +58,7 @@ static bool write_to_stream(FILE *stream, chunk_t data)
{
size_t len, total = 0;
+ set_file_mode(stream, CERT_ASN1_DER);
while (total < data.len)
{
len = fwrite(data.ptr + total, 1, data.len - total, stream);