SSLSocket.ConnectionType

From Xojo Documentation

Property (As Integer )
aSSLSocket.ConnectionType = newIntegerValue
or
IntegerValue = aSSLSocket.ConnectionType

Supported for all project types and targets.

Specifies the type of SSL connection.

Notes

fa-info-circle-32.png
Use the SSLSocket constant names for ConnectionType, and not the integer values so that the IDE can warn you when constants are removed or deprecated.

ConnectionType can take the following SSLSocket class constants:

Class Constant Value Description
SSLv23 1 A TLS/SSL connection established with this constant may understand the SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. If extensions are required (for example server name) a client will send out TLSv1 client hello messages including extensions and will indicate that it also understands TLSv1.1, TLSv1.2 and permits a fallback to SSLv3. A server will support SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. This is the best choice when compatibility is a concern.
TLSv1 3 TLS (Transport Layer Security) version 1. (default)
TLSv11 4 TLS (Transport Layer Security) version 1.1
TLSv12 5 TLS (Transport Layer Security) version 1.2

The default is TLSv1. If you need to change the connection type, close the connection first.

Example

This example changes the connection type to TLSv1.

Socket1.ConnectionType = SSLSocket.TLSv1