name:                HsOpenSSL-x509-system
version:             0.1.0.1
synopsis:            Use the system's native CA certificate store with HsOpenSSL
description:
  A cross-platform library that tries to find a (reasonable) CA certificate
  bundle that can be used with @HsOpenSSL@ to verify the certificates of
  remote peers.
  .
  This package is for @HsOpenSSL@ what @x509-system@ is for the @tls@ package.
  Additionally, it borrows some ideas from @x509-system@.
homepage:            https://github.com/redneb/HsOpenSSL-x509-system
bug-reports:         https://github.com/redneb/HsOpenSSL-x509-system/issues
license:             BSD3
license-file:        LICENSE
author:              Marios Titas <rednebΑΤgmxDΟΤcom>
maintainer:          Marios Titas <rednebΑΤgmxDΟΤcom>
category:            System, Filesystem
build-type:          Simple
cabal-version:       >=1.10

extra-source-files:
  ChangeLog

source-repository head
  type: git
  location: https://github.com/redneb/HsOpenSSL-x509-system.git

library
  exposed-modules:     OpenSSL.X509.SystemStore
  build-depends:       base >=4.6 && <5,
                       HsOpenSSL ==0.11.*,
                       bytestring >=0.9 && <1
  if os(windows)
    other-modules:       OpenSSL.X509.SystemStore.Win32
    build-depends:       Win32 >=2.2 && <3
    extra-libraries:     Crypt32
    cpp-options:         -DCABAL_OS_WINDOWS
    build-tools:         hsc2hs
  else
    if os(OSX)
      other-modules:       OpenSSL.X509.SystemStore.MacOSX
      build-depends:       process >=1 && <2
      cpp-options:         -DCABAL_OS_MACOSX
    else
      other-modules:       OpenSSL.X509.SystemStore.Unix
      build-depends:       unix >=2.6 && <3
  default-language:    Haskell2010
  ghc-options:         -Wall