Share this page

# lrs_start_ssl

Sockets Functions

Performs an SSL handshake on a socket.

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

Argument | Description
--- | ---
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

Copy code

    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);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: