x509-validation 1.6.0 → 1.6.1
raw patch · 3 files changed
+6/−10 lines, 3 filesdep −directorydep −filepathdep −network
Dependencies removed: directory, filepath, network, process
Files
Data/X509/Validation.hs view
@@ -354,11 +354,10 @@ -- character to the fqhn and inevitably will fail. -- -- e.g. *.*.server.com will try to litteraly match the '*' subdomain of server.com+ --+ -- Also '*' is not accepted as a valid wildcard wildcardMatch l- -- <star>.com or <star> is always invalid- | length l < 2 = [InvalidWildcard]- -- some TLD like .uk got small subTLD like (.co.uk), and we don't want to accept *.co.uk- | length (head l) <= 2 && length (head $ drop 1 l) <= 3 && length l < 3 = [InvalidWildcard]+ | null l = [InvalidWildcard] -- * is always invalid | l == take (length l) (reverse $ splitDot fqhn) = [] -- success: we got a match | otherwise = [NameMismatch fqhn]
Data/X509/Validation/Types.hs view
@@ -11,8 +11,9 @@ , HostName ) where -import Network.BSD (HostName) import Data.ByteString (ByteString)++type HostName = String -- | identification of the connection consisting of the -- fully qualified host name (e.g. www.example.com) and
x509-validation.cabal view
@@ -1,5 +1,5 @@ Name: x509-validation-Version: 1.6.0+Version: 1.6.1 Description: X.509 Certificate and CRL validation License: BSD3 License-file: LICENSE@@ -18,12 +18,8 @@ , bytestring , memory , byteable- , network , mtl , containers- , directory- , filepath- , process , hourglass , data-default-class , pem >= 0.1 && < 0.3