diff options
Diffstat (limited to 'src/openvpn/crypto.c')
-rw-r--r-- | src/openvpn/crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvpn/crypto.c b/src/openvpn/crypto.c index 2e2e5d7..f811966 100644 --- a/src/openvpn/crypto.c +++ b/src/openvpn/crypto.c @@ -868,7 +868,7 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags) #endif { in = alloc_buf_gc (2048, &gc); - fd = openvpn_open (file, O_RDONLY, 0); + fd = platform_open (file, O_RDONLY, 0); if (fd == -1) msg (M_ERR, "Cannot open file key file '%s'", file); size = read (fd, in.data, in.capacity); @@ -1029,7 +1029,7 @@ read_passphrase_hash (const char *passphrase_file, const int min_passphrase_size = 8; uint8_t buf[64]; int total_size = 0; - int fd = openvpn_open (passphrase_file, O_RDONLY, 0); + int fd = platform_open (passphrase_file, O_RDONLY, 0); if (fd == -1) msg (M_ERR, "Cannot open passphrase file: '%s'", passphrase_file); @@ -1079,7 +1079,7 @@ write_key_file (const int nkeys, const char *filename) const int bytes_per_line = 16; /* open key file */ - fd = openvpn_open (filename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR); + fd = platform_open (filename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR); if (fd == -1) msg (M_ERR, "Cannot open shared secret file '%s' for write", filename); |