SSL::mode

Description

Gets the enabled/disabled state of SSL

Syntax

SSL::mode

SSL::mode

  • Gets the enabled/disabled state of SSL. Returns 1 if it is enabled, and 0 if it is disabled.

Examples

when CLIENT_ACCEPTED {
  if { [TCP::local_port] != 443 } {
    SSL::disable
  }
}
when HTTP_REQUEST {
  if { [SSL::mode] == 0 } {
    HTTP::redirect "https://some.other.site.com/"
  }
}