pki: Switch to binary mode on Windows when reading/writing DER to FDs

This commit is contained in:
Martin Willi
2014-06-04 15:53:11 +02:00
parent f1e7b9b0d7
commit 13298719e3
13 changed files with 49 additions and 1 deletions
+5
View File
@@ -50,4 +50,9 @@ bool get_form(char *form, cred_encoding_type_t *enc, credential_type_t type);
bool calculate_lifetime(char *format, char *nbstr, char *nastr, time_t span,
time_t *nb, time_t *na);
/**
* Set output file mode appropriate for credential encoding form on Windows
*/
void set_file_mode(FILE *stream, cred_encoding_type_t enc);
#endif /** PKI_H_ @}*/