.tlsdeinit Method
Function: |
For the currently selected socket (selection is made through sock.num), de-initializes the TLS encryption. |
Syntax: |
sock.tlsdeinit() as accepted_rejected |
Returns: |
One of accepted_rejected constants:
|
See Also: |
Transport Layer Security (TLS), Closing Secure Connections, Closing Connections, sock.tlsinit |
Details
It is recommended that the socket's TCP connection be closed (that is, sock.state is at PL_SST_CLOSED) before this method is called.
REJECTED can only be returned under two circumstances:
- No socket has been initialized for TLS via sock.tlsinit (sock.tlscurrentnum = 255)
- The currently selected socket is not being used for TLS (sock.tlscurrentnum <> sock.num)