Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
tls Network.TLS A set of hooks to manipulate the way the verification works. BEWARE, it's easy to change behavior leading to compromised security.
-
tls Network.TLS No documentation available.
checkTimeValidity :: ValidationChecks -> Booltls Network.TLS check time validity of every certificate in the chain. the make sure that current time is between each validity bounds in the certificate
cipherID :: Cipher -> CipherIDtls Network.TLS No documentation available.
clientServerIdentification :: ClientParams -> (HostName, ByteString)tls Network.TLS Define the name of the server, along with an extra service identification blob. this is important that the hostname part is properly filled for security reason, as it allow to properly associate the remote side with the given certificate during a handshake. The extra blob is useful to differentiate services running on the same host, but that might have different certificates given. It's only used as part of the X509 validation infrastructure. This value is typically set by defaultParamsClient.
compressionCID :: CompressionC a => a -> CompressionIDtls Network.TLS No documentation available.
defaultValidationCache :: ValidationCachetls Network.TLS No documentation available.
exceptionValidationCache :: [(ServiceID, Fingerprint)] -> ValidationCachetls Network.TLS create a simple constant cache that list exceptions to the certification validation. Typically this is use to allow self-signed certificates for specific use, with out-of-bounds user checks. No fingerprints will be added after the instance is created. The underlying structure for the check is kept as a list, as usually the exception list will be short, but when the list go above a dozen exceptions it's recommended to use another cache mechanism with a faster lookup mechanism (hashtable, map, etc). Note that only one fingerprint is allowed per ServiceID, for other use, another cache mechanism need to be use.
hookValidateName :: ValidationHooks -> HostName -> Certificate -> [FailedReason]tls Network.TLS validate the certificate leaf name with the DNS named used to connect
hookValidateTime :: ValidationHooks -> DateTime -> Certificate -> [FailedReason]tls Network.TLS check whether the certificate in the second argument is valid at the time provided in the first argument. Return an empty list for success or else one or more failure reasons.