Module

Node.TLS.Socket

Package
purescript-node-tls
Repository
purescript-node/purescript-node-tls

#toTcpSocket Source

toTcpSocket :: forall endpoint. TlsSocket endpoint -> Socket TCP

#newClientTlsSocket' Source

#newServerTlsSocket' Source

#keylogHandle Source

keylogHandle :: forall endpoint. EventHandle1 (TlsSocket endpoint) Buffer

#ocspResponseHandle Source

ocspResponseHandle :: forall endpoint. EventHandle1 (TlsSocket endpoint) Buffer

#secureContextHandle Source

secureContextHandle :: forall endpoint. EventHandle0 (TlsSocket endpoint)

#sessionHandle Source

sessionHandle :: forall endpoint. EventHandle1 (TlsSocket endpoint) Buffer

#authorizationError Source

authorizationError :: forall endpoint. TlsSocket endpoint -> Effect Foreign

#authorized Source

authorized :: forall endpoint. TlsSocket endpoint -> Effect Boolean

#enableTrace Source

enableTrace :: forall endpoint. TlsSocket endpoint -> Effect Unit

#encrypted Source

encrypted :: forall endpoint. TlsSocket endpoint -> Effect Boolean

#exportKeyingMaterial Source

exportKeyingMaterial :: forall endpoint. TlsSocket endpoint -> Int -> String -> Effect Buffer

#exportKeyingMaterial' Source

exportKeyingMaterial' :: forall endpoint. TlsSocket endpoint -> Int -> String -> Buffer -> Effect Buffer

#getCertificate Source

getCertificate :: forall endpoint. TlsSocket endpoint -> Effect Foreign

#getCipher Source

getCipher :: forall endpoint. TlsSocket endpoint -> Effect CipherObject

#getEphemeralKeyInfo Source

#getFinished Source

getFinished :: forall endpoint. TlsSocket endpoint -> Effect (Maybe Buffer)

#getPeerCertificate Source

getPeerCertificate :: forall endpoint. TlsSocket endpoint -> Effect Foreign

#getPeerCertificate' Source

getPeerCertificate' :: forall endpoint. TlsSocket endpoint -> Boolean -> Effect Foreign

#getPeerFinished Source

getPeerFinished :: forall endpoint. TlsSocket endpoint -> Effect (Maybe Buffer)

#getPeerX509Certificate Source

getPeerX509Certificate :: forall endpoint. TlsSocket endpoint -> Effect Foreign

API is provided here but return value is unspecified since node:crypto bindings do not yet exist.

#getProtocol Source

getProtocol :: forall endpoint. TlsSocket endpoint -> Effect (Maybe String)

#getSession Source

getSession :: forall endpoint. TlsSocket endpoint -> Effect (Maybe Buffer)

#getSharedSigalgs Source

getSharedSigalgs :: forall endpoint. TlsSocket endpoint -> Effect (Array String)

#getX509Certificate Source

getX509Certificate :: forall endpoint. TlsSocket endpoint -> Effect Foreign

API is provided here but return value is unspecified since node:crypto bindings do not yet exist.

#isSessionReused Source

isSessionReused :: forall endpoint. TlsSocket endpoint -> Effect Boolean

#setMaxSendFragment Source

setMaxSendFragment :: forall endpoint. TlsSocket endpoint -> Int -> Effect Boolean