static int verbose = PRG_INFO;
static int timestamp;
+#ifndef _WIN32
static int background;
static FILE *pid_fp = NULL;
static char *pidfile = NULL;
+#endif
static int do_passphrase_from_fsid;
static int non_inter;
static int cookieonly;
dtls_state);
}
+#ifndef _WIN32
static FILE *background_self(struct openconnect_info *vpninfo, char *pidfile) {
FILE *fp = NULL;
int pid;
fclose(fp);
return fp;
}
+#endif /* _WIN32 */
static void fully_up_cb(void *_vpninfo) {
struct openconnect_info *vpninfo = _vpninfo;
case OPT_CAFILE:
openconnect_set_cafile(vpninfo, dup_config_arg());
break;
+#ifndef _WIN32
case OPT_PIDFILE:
pidfile = keep_config_arg();
break;
+#endif
case OPT_PFS:
openconnect_set_pfs(vpninfo, 1);
break;
vpn_progress(vpninfo, PRG_INFO, _("User requested reconnect\n"));
}
+#ifndef _WIN32
if (pid_fp)
unlink(pidfile);
+#endif
switch (ret) {
case -EPERM: