Interfaces

ClearTextStream
ConnectionOptions
SecurePair
Server
TlsOptions

Properties

SP CLIENT_RENEG_LIMIT: number

Type:
  • number

SP CLIENT_RENEG_WINDOW: number

Type:
  • number

Methods

Parameters:
Name Type Argument
options tls.TlsOptions
secureConnectionListener module:tls.ConnectSecureConnectionListenerCallback <optional>
Returns: { tls.ClearTextStream }

SM connect(port: number, host: string, options: tls.ConnectionOptions, secureConnectListener: module:tls.ConnectSecureConnectListenerCallback) tls.ClearTextStream

Parameters:
Name Type Argument
port number
host string <optional>
options tls.ConnectionOptions <optional>
secureConnectListener module:tls.ConnectSecureConnectListenerCallback <optional>
Returns: { tls.ClearTextStream }

SM connect(port: number, options: tls.ConnectionOptions, secureConnectListener: module:tls.ConnectSecureConnectListenerCallback) tls.ClearTextStream

Parameters:
Name Type Argument
port number
options tls.ConnectionOptions <optional>
secureConnectListener module:tls.ConnectSecureConnectListenerCallback <optional>
Returns: { tls.ClearTextStream }

SM createSecurePair(credentials: crypto.Credentials, isServer: boolean, requestCert: boolean, rejectUnauthorized: boolean) tls.SecurePair

Parameters:
Name Type Argument
credentials crypto.Credentials <optional>
isServer boolean <optional>
requestCert boolean <optional>
rejectUnauthorized boolean <optional>
Returns: { tls.SecurePair }

SM createServer(options: tls.TlsOptions, secureConnectionListener: module:tls.CreateServerSecureConnectionListenerCallback) tls.Server

Parameters:
Name Type Argument
options tls.TlsOptions
secureConnectionListener module:tls.CreateServerSecureConnectionListenerCallback <optional>
Returns: { tls.Server }

Callbacks

ConnectSecureConnectionListenerCallback() void

Returns: { void }

ConnectSecureConnectListenerCallback() void

Returns: { void }

ConnectSecureConnectListenerCallback() void

Returns: { void }

CreateServerSecureConnectionListenerCallback(cleartextStream: tls.ClearTextStream) void

Parameters:
Name Type
cleartextStream tls.ClearTextStream
Returns: { void }