Commit ba84b55f authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos Committed by David Woodhouse

Fixed compilation issues in windows

[dwmw2: Hide uid_csd and uid_csd_given too]
Signed-off-by: default avatarNikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent a918f008
......@@ -1265,6 +1265,7 @@ static int detect_mtu_ipv6(struct openconnect_info *vpninfo, unsigned char *buf)
break;
} while(max_resends-- > 0);
#ifndef _WIN32
/* If we received back our DPD packet, do nothing; otherwise,
* attempt to get MTU from the ICMP6 packet we received */
if (ret <= 0) {
......@@ -1282,6 +1283,9 @@ static int detect_mtu_ipv6(struct openconnect_info *vpninfo, unsigned char *buf)
}
}
}
#else
mtu6_fail:
#endif
return cur;
fail:
......
......@@ -466,8 +466,10 @@ int openconnect_get_ip_info(struct openconnect_info *vpninfo,
int openconnect_setup_csd(struct openconnect_info *vpninfo, uid_t uid,
int silent, const char *wrapper)
{
#ifndef _WIN32
vpninfo->uid_csd = uid;
vpninfo->uid_csd_given = silent ? 2 : 1;
#endif
STRDUP(vpninfo->csd_wrapper, wrapper);
return 0;
......
......@@ -399,10 +399,7 @@ struct openconnect_info {
int nopasswd;
int xmlpost;
char *dtls_ciphers;
uid_t uid_csd;
gid_t gid_csd;
char *csd_wrapper;
int uid_csd_given;
int no_http_keepalive;
int dump_http_traffic;
......@@ -538,6 +535,9 @@ struct openconnect_info {
char *dtls_cipher;
char *vpnc_script;
#ifndef _WIN32
int uid_csd_given;
uid_t uid_csd;
gid_t gid_csd;
uid_t uid;
gid_t gid;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment