certificate 0.1 → 0.2
raw patch · 2 files changed
+11/−7 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Certificate.X509: instance Eq Certificate
+ Data.Certificate.X509: instance Eq CertificateDN
+ Data.Certificate.X509: instance Eq PubKey
+ Data.Certificate.X509: instance Eq PubKeyDesc
Files
- Data/Certificate/X509.hs +4/−4
- certificate.cabal +7/−3
Data/Certificate/X509.hs view
@@ -76,10 +76,10 @@ PubKeyRSA (Int, Integer, Integer) -- len modulus, modulus, e | PubKeyDSA (L.ByteString, Integer, Integer, Integer) -- pub, p, q, g | PubKeyUnknown [Word8]- deriving (Show)+ deriving (Show,Eq) data PubKey = PubKey SignatureALG PubKeyDesc -- OID RSA|DSA|rawdata- deriving (Show)+ deriving (Show,Eq) data CertificateDN = CertificateDN { cdnCommonName :: Maybe String,@@ -87,7 +87,7 @@ cdnOrganization :: Maybe String, cdnOrganizationUnit :: Maybe String, cdnOthers :: [ (OID, String) ]- } deriving (Show)+ } deriving (Show,Eq) -- FIXME use a proper standard type for representing time. type Time = (Int, Int, Int, Int, Int, Int, Bool)@@ -103,7 +103,7 @@ certExtensions :: Maybe [ASN1], certSignature :: Maybe (SignatureALG, [Word8]), certOthers :: [ASN1]- } deriving (Show)+ } deriving (Show,Eq) {- | parse a RSA pubkeys from ASN1 encoded bits. - return PubKeyRSA (len-modulus, modulus, e) if successful -}
certificate.cabal view
@@ -1,12 +1,16 @@ Name: certificate-Version: 0.1-Description: Certificate and Key reader/writer+Version: 0.2+Description:+ Certificates and Key reader/writer+ .+ At the moment only X509 certificate and unencrypted private key are supported,+ but will include PGP certificate and pkcs8 private keys License: BSD3 License-file: LICENSE Copyright: Vincent Hanquez <vincent@snarc.org> Author: Vincent Hanquez <vincent@snarc.org> Maintainer: Vincent Hanquez <vincent@snarc.org>-Synopsis: Certificate and Key Reader/Writer+Synopsis: Certificates and Key Reader/Writer Build-Type: Simple Category: Data stability: experimental