rosetta/internal/erl/ssl/r_ssl
/ ROSETTA SSL
Types
pub type MissingSSLObject
TlsHandshake Type corresponds to… FIXME
pub type TlsHandshakeType {
Hello
Full
}
Constructors
-
Hello
-
Full
pub type TlsProtocol {
Tls
Dtls
}
Constructors
-
Tls
-
Dtls
TlsServerOption is what ssl:listen/2
function can accept
pub type TlsServerOption {
Cacerts(MissingSSLObject)
Cacertfile(String)
Verify(TlsVerificationMode)
FailIfNoPeerCert(Bool)
CertificateAuthorities(Bool)
CertsKeys(List(Any))
Depth(allowed_cert_chain_len: Int)
VerifyFun(#(Any, Any))
CertPolicyOpts(Any)
CrlCheck(Any)
CrlCache(Any)
PartialChain(Any)
AlpnPreferredProtocols(List(BitArray))
SniHosts(List(Any))
SniFun(fn(String) -> List(Any))
ServerOptionPreTls13
CommonOptionPreTls13
ServerOptionTls13
CommonOptionTls13
CommonOptionDtls
Protocol(TlsProtocol)
Handshake(TlsHandshakeType)
Ciphers(MissingSSLObject)
SignatureAlgs(MissingSSLObject)
SignatureAlgsCert(MissingSSLObject)
KeepSecrets(Bool)
MaxHandshakeSize(Int)
Versions(MissingSSLObject)
LogLevel(MissingSSLObject)
HibernateAfter(MissingSSLObject)
ReceiverSpawnOpts(MissingSSLObject)
SenderSpawnOpts(MissingSSLObject)
GenTcpConnectOption
TransportOption
}
Constructors
-
Cacerts(MissingSSLObject)
-
Cacertfile(String)
-
Verify(TlsVerificationMode)
-
FailIfNoPeerCert(Bool)
-
CertificateAuthorities(Bool)
-
CertsKeys(List(Any))
-
Depth(allowed_cert_chain_len: Int)
-
VerifyFun(#(Any, Any))
-
CertPolicyOpts(Any)
-
CrlCheck(Any)
-
CrlCache(Any)
-
PartialChain(Any)
-
AlpnPreferredProtocols(List(BitArray))
-
SniHosts(List(Any))
-
SniFun(fn(String) -> List(Any))
-
ServerOptionPreTls13
-
CommonOptionPreTls13
-
ServerOptionTls13
-
CommonOptionTls13
-
CommonOptionDtls
-
Protocol(TlsProtocol)
-
Handshake(TlsHandshakeType)
-
Ciphers(MissingSSLObject)
-
SignatureAlgs(MissingSSLObject)
-
SignatureAlgsCert(MissingSSLObject)
-
KeepSecrets(Bool)
-
MaxHandshakeSize(Int)
-
Versions(MissingSSLObject)
-
LogLevel(MissingSSLObject)
-
HibernateAfter(MissingSSLObject)
-
ReceiverSpawnOpts(MissingSSLObject)
-
SenderSpawnOpts(MissingSSLObject)
-
GenTcpConnectOption
-
TransportOption
pub type TlsVerificationMode {
VerifyNone
VerifyPeer
}
Constructors
-
VerifyNone
-
VerifyPeer
Functions
pub fn r_listen_2(
port: PortNumber,
options: List(TlsServerOption),
) -> Result(SslSocket, Reason)