SSLSocket.ConnectionType

From Xojo Documentation
Jump to: navigation, search
Property (As Integer)
aSSLSocket.ConnectionType = newIntegerValue
or
IntegerValue = aSSLSocket.ConnectionType

Specifies the type of SSL connection.

Notes

ConnectionType can take the following SSLSocket class constants:

Class Constant Description
SSLv2 SSL (Secure Sockets Layer) version 2.
SSLv23 SSL version 3, but can roll back to 2 if needed.
SSLv3 SSL version 3.
TLSv1 TLS (Transport Layer Security) version 1.


The default is SSL version 23. Once you have called the SSLSocket.Connect method, you cannot change the connection type without calling SSLSocket.Close first, but you can always query the connection type. If you are unsure whether the server supports SSLv23, you can try connecting multiple times. If an attempt results in a 102 error, try again with a different value for ConnectionType.


Example

This example changes the connection type to SSLv3.

Socket1.connectiontype=SSLSocket.SSLv3
Personal tools
Namespaces

Variants
Actions
Main
Documentation
Community
Toolbox
Help