SetSecureConnection

Make a current TCP connection secure using SSL

Syntax

LOADLIB "wh::internet/tcpip.whlib";

BOOLEAN FUNCTION SetSecureConnection(INTEGER connectionid, BOOLEAN initiate, RECORD options)

Parameters

INTEGER connectionid

ID of connection to secure

BOOLEAN initiate

True to initiate a secure connection, false to accept a secure connection

RECORD options
ciphersuites

Override the ciphersuites to use

hostname

Hostname to use for SNI

Return value

BOOLEAN

True on success