print_equals = equals;
/* Don't print the webvpn cookie unless it's empty; we don't
want people posting it in public with debugging output */
- if (!strcmp(colon, "webvpn") && *equals)
+ if (vpninfo->proto->secure_cookie && !strcmp(colon, vpninfo->proto->secure_cookie) && *equals)
print_equals = _("<elided>");
vpn_progress(vpninfo, PRG_DEBUG, "%s: %s=%s%s%s\n",
hdrline, colon, print_equals, semicolon ? ";" : "",
.tcp_mainloop = cstp_mainloop,
.add_http_headers = cstp_common_headers,
.obtain_cookie = cstp_obtain_cookie,
+ .secure_cookie = "webvpn",
.udp_protocol = "DTLS",
#ifdef HAVE_DTLS
.udp_setup = dtls_setup,
.tcp_mainloop = oncp_mainloop,
.add_http_headers = oncp_common_headers,
.obtain_cookie = oncp_obtain_cookie,
+ .secure_cookie = "DSID",
.udp_protocol = "ESP",
#ifdef HAVE_ESP
.udp_setup = esp_setup,
.tcp_mainloop = ppp_mainloop,
.add_http_headers = http_common_headers,
.obtain_cookie = f5_obtain_cookie,
+ .secure_cookie = "MRHSession",
.udp_protocol = "DTLS",
#ifdef HAVE_DTLSx /* Not yet... */
.udp_setup = esp_setup,
.tcp_mainloop = ppp_mainloop,
.add_http_headers = http_common_headers,
.obtain_cookie = fortinet_obtain_cookie,
+ .secure_cookie = "SVPNCOOKIE",
.udp_protocol = "DTLS",
#ifdef HAVE_DTLSx /* Not yet... */
.udp_setup = esp_setup,