1-- | 2-- Module : Data.X509.Validation.Types 3-- License : BSD-style 4-- Maintainer : Vincent Hanquez <vincent@snarc.org> 5-- Stability : experimental 6-- Portability : unknown 7-- 8-- X.509 Validation types 9module Data.X509.Validation.Types 10 ( ServiceID 11 , HostName 12 ) where 13 14import Data.ByteString (ByteString) 15 16type HostName = String 17 18-- | identification of the connection consisting of the 19-- fully qualified host name (e.g. www.example.com) and 20-- an optional suffix. 21-- 22-- The suffix is not used by the validation process, but 23-- is used by the optional cache to identity certificate per service 24-- on a specific host. For example, one might have a different 25-- certificate on 2 differents ports (443 and 995) for the same host. 26-- 27-- for TCP connection, it's recommended to use: :port, or :service for the suffix. 28-- 29type ServiceID = (HostName, ByteString) 30