Pike v8.1 release 6

Method Protocols.LDAP.client()->start_tls()


Method start_tls

int start_tls(void|SSL.Context context)

Description

Requests that a SSL/TLS session be negotiated on the connection. If the connection is already secure, this call will fail.

Parameter context

an optional SSL.context object to provide to the SSL/TLS connection client.

Returns 1 on success, 0 otherwise.