ContentsIndex
Barracuda.CertificateList
MaintainerStephan Friedrichs, Henning Guenther
Description
This module contains a list for the known certificates of internal and external users. It also contains functions to cache the certificates on the hard disk.
Synopsis
type CertificateList = Map UserID Certificate
certificates :: CertificateList -> [(UserID, Certificate)]
dumpCertificateList :: CertificateList -> FilePath -> IO ()
loadCertificateList :: FilePath -> IO CertificateList
verify :: CertificateList -> String -> Signature -> UserID -> SignatureStatus
Documentation
type CertificateList = Map UserID Certificate
Stores the Certificate of every user in the network.
certificates :: CertificateList -> [(UserID, Certificate)]
Returns a complete list of UserIDs and their Certificates.
dumpCertificateList :: CertificateList -> FilePath -> IO ()
Writes the certificate list into a directory(dir). It uses the following schema: dir/host/user.cert
loadCertificateList :: FilePath -> IO CertificateList
Loads the certificate list from a given location using the same schema as dumpCertificateList.
verify :: CertificateList -> String -> Signature -> UserID -> SignatureStatus
Produced by Haddock version 0.8