remoteUseSSL

Name

remoteUseSSL -- Specifies that this connection should use secure SSL communication.

Synopsis

$err = $pd->remoteUseSSL(keyfile);

Description

Sets up internal data structures to use SSL when communicating with the History Listener. This function is meant to be called before an actual connection is established. Should this function be called in the middle of data retrieval an error will be returned.

The keyfile parameter is the path to the keyfile used by SSL. This file does not have to exist; if it does not, remoteUseSSL() will create it.

Returns

Returns -1 if an error occurred, or 0 otherwise. In case of error, the program will croak() with an appriopriate message.