lrs_start_ssl

Sockets Functions

Performs an SSL handshake on a socket.

int lrs_start_ssl( char* socketDesc [, char* version] [, char* ciphers]));

socketDesc

A descriptor identifying a socket.
version

One of:

  • SSLv2n3 (default)
  • SSLv2
  • SSLv3
  • TLSv1_0
  • TLSv1_1
  • TLSv1_2
  • TLSv1_3

ciphers

A colon-separated list of ciphers supported by the client. The default is All.

For details, refer to the OpenSSL Cipher documentation.

The lrs_start_ssl function performs an SSL handshake on a socket.

This function is recorded during a Windows Socket session.

Return Values

Windows Sockets Return Values

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

In the following example, a new socket and SSL is started

lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=some.hostname.org:443", LrsLastArg);
lrs_start_ssl("socket2", "Version=TLSv1_0", "Ciphers=RC4-MD5:RC4-SHA", LrsLastArg);
lrs_send("socket2", "buf15", LrsLastArg);