-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | System X.509 handling for accessing operating system dependents store
--   and other storage methods
@package crypton-x509-system
@version 1.10.1

module System.X509.Common

-- | Like OpenSSL, the certificates in <tt>SSL_CERT_FILE</tt> and in the
--   directories listed in <tt>SSL_CERT_DIR</tt> replace the default store
--   if either variable is set to a non-empty value.
maybeSSLCertEnvOr :: IO CertificateStore -> IO CertificateStore

-- | Certificates returned by a C function as a malloc'ed buffer of 4-byte
--   big-endian lengths each followed by DER. The first argument names the
--   caller in errors.
nativeCertificates :: String -> (Ptr (Ptr Word8) -> Ptr CSize -> IO CInt) -> IO [SignedCertificate]

module System.X509.MacOS

-- | Certificates trusted as TLS anchors according to the trust settings of
--   the user, admin and system domains.
getSystemCertificateStore :: IO CertificateStore


-- | this module is portable to unix system where there is usually a
--   <i>etc</i>ssl/certs with system X509 certificates.
--   
--   the path can be dynamically override using the environment variable
--   defined by envPathOverride in the module, which by default is
--   SYSTEM_CERTIFICATE_PATH
module System.X509.Unix
getSystemCertificateStore :: IO CertificateStore


module System.X509
getSystemCertificateStore :: IO CertificateStore
