packages feed

x509 1.5.0.1 → 1.5.1

raw patch · 4 files changed

+9/−5 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Data/X509/AlgorithmIdentifier.hs view
@@ -55,6 +55,8 @@         , ([1,2,840,113549,1,1,2], SignatureALG HashMD2 PubKeyALG_RSA)         , ([1,2,840,113549,1,1,11], SignatureALG HashSHA256 PubKeyALG_RSA)         , ([1,2,840,113549,1,1,12], SignatureALG HashSHA384 PubKeyALG_RSA)+        , ([1,2,840,113549,1,1,13], SignatureALG HashSHA512 PubKeyALG_RSA)+        , ([1,2,840,113549,1,1,14], SignatureALG HashSHA224 PubKeyALG_RSA)         , ([1,2,840,10040,4,3],    SignatureALG HashSHA1 PubKeyALG_DSA)         , ([1,2,840,10045,4,3,1],  SignatureALG HashSHA224 PubKeyALG_ECDSA)         , ([1,2,840,10045,4,3,2],  SignatureALG HashSHA256 PubKeyALG_ECDSA)
Data/X509/Cert.hs view
@@ -12,7 +12,7 @@ module Data.X509.Cert (Certificate(..)) where  import Data.ASN1.Types-import Data.Hourglass (DateTime)+import Data.Hourglass (DateTime, TimezoneOffset(TimezoneOffset)) import Control.Applicative ((<$>), (<*>)) import Data.X509.Internal import Data.X509.PublicKey@@ -41,7 +41,7 @@         , certSerial       :: Integer                -- ^ Serial number         , certSignatureAlg :: SignatureALG           -- ^ Signature algorithm         , certIssuerDN     :: DistinguishedName      -- ^ Issuer DN-        , certValidity     :: (DateTime, DateTime)   -- ^ Validity period+        , certValidity     :: (DateTime, DateTime)   -- ^ Validity period (UTC)         , certSubjectDN    :: DistinguishedName      -- ^ Subject DN         , certPubKey       :: PubKey                 -- ^ Public key         , certExtensions   :: Extensions             -- ^ Extensions@@ -104,8 +104,8 @@         eAlgId    = toASN1 (certSignatureAlg cert) []         eIssuer   = toASN1 (certIssuerDN cert) []         (t1, t2)  = certValidity cert-        eValidity = asn1Container Sequence [ASN1Time TimeGeneralized t1 Nothing-                                           ,ASN1Time TimeGeneralized t2 Nothing]+        eValidity = asn1Container Sequence [ASN1Time TimeGeneralized t1 (Just (TimezoneOffset 0))+                                           ,ASN1Time TimeGeneralized t2 (Just (TimezoneOffset 0))]         eSubject  = toASN1 (certSubjectDN cert) []         epkinfo   = toASN1 (certPubKey cert) []         eexts     = toASN1 (certExtensions cert) []
Tests/Tests.hs view
@@ -56,6 +56,8 @@         , SignatureALG HashMD2 PubKeyALG_RSA         , SignatureALG HashSHA256 PubKeyALG_RSA         , SignatureALG HashSHA384 PubKeyALG_RSA+        , SignatureALG HashSHA512 PubKeyALG_RSA+        , SignatureALG HashSHA224 PubKeyALG_RSA         , SignatureALG HashSHA1 PubKeyALG_DSA         , SignatureALG HashSHA224 PubKeyALG_ECDSA         , SignatureALG HashSHA256 PubKeyALG_ECDSA
x509.cabal view
@@ -1,5 +1,5 @@ Name:                x509-Version:             1.5.0.1+Version:             1.5.1 Description:         X509 reader and writer License:             BSD3 License-file:        LICENSE