Fortinet white logo
Fortinet white logo

Script Reference Guide

SSL:version()

SSL:version()

Returns the SSL version in the handshake.

Syntax

SSL:version();

Arguments

N/A

Events

Applicable in the following events:

  • CLIENTSSL_HANDSHAKE

  • SERVERSSL_HANDSHAKE

Example

when CLIENTSSL_HANDSHAKE{
debug("client handshake\n")
ver=SSL:version();
debug("SSL Version: %s \n",ver);
}
Result: (client send https request with various version)
client handshake
SSL Version: TLSv1
or
client handshake
SSL Version: TLSv1.1
or
client handshake
SSL Version: TLSv1.2
or
client handshake
SSL Version: SSLv3

Supported Version

FortiADC version 5.0.x and later.

SSL:version()

SSL:version()

Returns the SSL version in the handshake.

Syntax

SSL:version();

Arguments

N/A

Events

Applicable in the following events:

  • CLIENTSSL_HANDSHAKE

  • SERVERSSL_HANDSHAKE

Example

when CLIENTSSL_HANDSHAKE{
debug("client handshake\n")
ver=SSL:version();
debug("SSL Version: %s \n",ver);
}
Result: (client send https request with various version)
client handshake
SSL Version: TLSv1
or
client handshake
SSL Version: TLSv1.1
or
client handshake
SSL Version: TLSv1.2
or
client handshake
SSL Version: SSLv3

Supported Version

FortiADC version 5.0.x and later.