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

clear all cookies when doing a reset SSL

Signed-off-by: default avatarNikos Mavrogiannopoulos <>
Signed-off-by: default avatarDavid Woodhouse <>
parent ba935f0c
......@@ -897,7 +897,7 @@ int internal_parse_url(const char *url, char **res_proto, char **res_host,
return 0;
static void clear_cookies(struct openconnect_info *vpninfo)
void openconnect_clear_cookies(struct openconnect_info *vpninfo)
struct oc_vpn_option *opt, *next;
......@@ -944,7 +944,7 @@ static int handle_redirect(struct openconnect_info *vpninfo)
/* Kill the existing connection, and a new one will happen */
openconnect_close_https(vpninfo, 0);
vpninfo->redirect_type = REDIR_TYPE_NEWHOST;
} else
......@@ -407,6 +407,7 @@ void openconnect_reset_ssl(struct openconnect_info *vpninfo)
vpninfo->peer_addr = NULL;
int openconnect_parse_url(struct openconnect_info *vpninfo, const char *url)
......@@ -612,6 +612,8 @@ int openconnect_open_utf8(struct openconnect_info *vpninfo,
FILE *openconnect_fopen_utf8(struct openconnect_info *vpninfo,
const char *fname, const char *mode);
void openconnect_clear_cookies(struct openconnect_info *vpninfo);
/* {gnutls,openssl}.c */
int openconnect_open_https(struct openconnect_info *vpninfo);
void openconnect_close_https(struct openconnect_info *vpninfo, int final);
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