Module
Erl.Ssl
- Package
- erl-ssl
- Repository
- id3as/purescript-erl-ssl
#VerifyFn Source
type VerifyFn = OTPCertificate -> VerifyEvent -> VerifyFnResult
#PartialChainFn Source
type PartialChainFn = List DerEncoded -> Maybe DerEncoded
#KeyPassword Source
type KeyPassword = String
#CommonOptions Source
type CommonOptions :: Row Type -> Row Type
type CommonOptions r = (beast_mitigation :: Maybe BeastMitigation, cert :: Maybe (List DerEncoded), certfile :: Maybe FileName, ciphers :: Maybe Ciphers, crl_check :: Maybe CrlCheck, depth :: Maybe Int, eccs :: Maybe (List NamedCurve), handshake :: Maybe HandshakeCompletion, hibernate_after :: Maybe Milliseconds, keep_secrets :: Maybe Boolean, key :: Maybe Key, key_update_at :: Maybe PosInt, keyfile :: Maybe FileName, log_level :: Maybe LogLevel, max_handshake_size :: Maybe Int, middlebox_comp_mode :: Maybe Boolean, padding_check :: Maybe Boolean, password :: Maybe KeyPassword, protocol :: Maybe Protocol, secure_renegotiate :: Maybe Boolean, signature_algs_cert :: Maybe (List SignScheme), supported_groups :: Maybe (List Group), versions :: Maybe (List ProtocolVersion) | r)
#ServerOptions Source
type ServerOptions :: Row Type -> Row Type
type ServerOptions r = (alpn_preferred_protocols :: Maybe (List AppLevelProtocol), anti_replay :: Maybe AntiReplay, cacertfile :: Maybe FileName, cacerts :: Maybe (List DerEncoded), client_renegotiation :: Maybe Boolean, cookie :: Maybe Boolean, dh :: Maybe Binary, dhfile :: Maybe FileName, early_data :: Maybe Binary, fail_if_no_peer_cert :: Maybe Boolean, honor_cipher_order :: Maybe Boolean, honor_ecc_order :: Maybe Boolean, next_protocols_advertised :: Maybe (List AppLevelProtocol), psk_identity :: Maybe PskIdentity, reuse_sessions :: Maybe Boolean, session_tickets :: Maybe ServerSessionTickets, signature_algs :: Maybe (List SignatureAlgorithm), verify :: Maybe Verify | r)
#ClientOptions Source
type ClientOptions :: Row Type -> Row Type
type ClientOptions r = (alpn_advertised_protocols :: Maybe (List AppLevelProtocol), cacertfile :: Maybe FileName, cacerts :: Maybe (List DerEncoded), client_preferred_next_protocols :: Maybe ClientPreferredNextProtocols, early_data :: Maybe Binary, fallback :: Maybe Boolean, max_fragment_length :: Maybe MaxFragmentLength, psk_identity :: Maybe PskIdentity, reuse_session :: Maybe ClientReuseSession, reuse_sessions :: Maybe ClientReuseSessions, server_name_indication :: Maybe Hostname, session_tickets :: Maybe ClientSessionTickets, signature_algs :: Maybe (List SignatureAlgorithm), srp_identity :: Maybe SrpIdentity, use_ticket :: Maybe (List Binary), verify :: Maybe Verify | r)
#ListenOptions Source
type ListenOptions :: Row Type
type ListenOptions = ServerOptions (CommonOptions (ListenOptions))
#ConnectOptions Source
type ConnectOptions :: Row Type
type ConnectOptions = ClientOptions (CommonOptions (CommonOptions ()))
#AppLevelProtocol Source
type AppLevelProtocol = Binary
#PskIdentity Source
type PskIdentity = String
#SrpIdentity Source
type SrpIdentity = String
#ServerReuseSessionFn Source
type ServerReuseSessionFn = Binary -> DerEncoded -> Int -> Cipher -> Boolean
#OptionToMaybe Source
data OptionToMaybe
Instances
Eq OptionToMaybe
ConvertOption OptionToMaybe "mode" a a
ConvertOption OptionToMaybe sym (Maybe a) (Maybe a)
ConvertOption OptionToMaybe sym a (Maybe a)
#SslSocket Source
data SslSocket :: SocketMessageBehaviour -> SocketType -> Type
Instances
#defaultCommonOptions Source
defaultCommonOptions :: forall r. Union r (CommonOptions ()) (CommonOptions r) => Record r -> Record (CommonOptions r)
#defaultServerOptions Source
defaultServerOptions :: forall r. Union r (ServerOptions ()) (ServerOptions r) => Record r -> Record (ServerOptions r)
#defaultClientOptions Source
defaultClientOptions :: forall r. Union r (ClientOptions ()) (ClientOptions r) => Nub (ClientOptions r) (ClientOptions r) => Record r -> Record (ClientOptions r)
#connectOptions Source
connectOptions :: forall options. ConvertOptionsWithDefaults OptionToMaybe (Record ConnectOptions) options (Record ConnectOptions) => options -> Record ConnectOptions
#connectPassive Source
connectPassive :: forall options. Lacks "active" options => Union (ForcedOptions ()) options (ForcedOptions options) => Nub (ForcedOptions options) (ForcedOptions options) => ConvertOptionsWithDefaults OptionToMaybe (Record ConnectOptions) (Record (ForcedOptions options)) (Record (ForcedOptions ConnectOptions)) => ConnectAddress -> Port -> Record options -> Timeout -> Effect (Either ConnectError (SslSocket PassiveSocket ConnectedSocket))
- Modules
- Erl.
Ssl