summaryrefslogtreecommitdiffstats
path: root/src/openvpn/ssl_verify.c
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-02-29 22:12:19 +0200
committerDavid Sommerseth <davids@redhat.com>2012-03-24 00:14:14 +0100
commit14a131ac1cfc95e5ba2518ff887d04c034aecc53 (patch)
tree20274d65fceef494e14f3ac0c5be0171d631dfb8 /src/openvpn/ssl_verify.c
parent72c7b12cb65cee69ea129cc520b26dcc64977a17 (diff)
downloadopenvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.gz
openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.xz
openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.zip
build: move wrappers into platform module
+ Some fixups within the platform.c functions. - need to check environment set on Windows. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/ssl_verify.c')
-rw-r--r--src/openvpn/ssl_verify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvpn/ssl_verify.c b/src/openvpn/ssl_verify.c
index 51457f8..e837e39 100644
--- a/src/openvpn/ssl_verify.c
+++ b/src/openvpn/ssl_verify.c
@@ -517,7 +517,7 @@ verify_cert_call_command(const char *verify_command, struct env_set *es,
if (verify_export_cert)
{
if (tmp_file)
- delete_file(tmp_file);
+ platform_unlink(tmp_file);
}
gc_free(&gc);
@@ -551,7 +551,7 @@ verify_check_crl_dir(const char *crl_dir, openvpn_x509_cert_t *cert)
x509_free_serial(serial);
return FAILURE;
}
- fd = openvpn_open (fn, O_RDONLY, 0);
+ fd = platform_open (fn, O_RDONLY, 0);
if (fd >= 0)
{
msg (D_HANDSHAKE, "VERIFY CRL: certificate serial number %s is revoked", serial);
@@ -735,7 +735,7 @@ key_state_rm_auth_control_file (struct key_state *ks)
{
if (ks && ks->auth_control_file)
{
- delete_file (ks->auth_control_file);
+ platform_unlink (ks->auth_control_file);
free (ks->auth_control_file);
ks->auth_control_file = NULL;
}
@@ -987,7 +987,7 @@ verify_user_pass_script (struct tls_session *session, const struct user_pass *up
done:
if (tmp_file && strlen (tmp_file) > 0)
- delete_file (tmp_file);
+ platform_unlink (tmp_file);
argv_reset (&argv);
gc_free (&gc);