Permalink
Commits on Apr 16, 2012
  1. Bump version to 0.10.3

    depressed-pho committed Apr 16, 2012
  2. Merge pull request #13 from mvv/verify-cb-fix

    depressed-pho committed Apr 16, 2012
    Fixed early verification callback deallocation crash.
  3. Merge pull request #12 from mvv/x509-store-ctx

    depressed-pho committed Apr 16, 2012
    Bindings to some of the X509_STORE_CTX functions.
  4. Fixed early verification callback deallocation crash.

    mvv committed Apr 16, 2012
    Embarrassingly, there is a bug in my verification callback support code
    which leads to RTS crashes:
    1. `SSLContext` is created.
    2. Verification callback is installed and allocated `FunPtr` is written
       to `ctxVfCb` `IORef`.
    3. An `SSL` is created using the `SSLContext`.
    4. The `SSLContext` is GCed and the finalizer calls `freeHaskellFunPtr`.
    5. `connect` is called on the `SSL`.
    6. KABOOM! Freed verification `FunPtr` is called.
    
    The solution is to keep a reference to the `SSLContext` in each `SSL`
    created from it. This prevents verification callback from deallocation,
    until there is no sessions left to call it.
  5. Bump version to 0.10.2.1

    depressed-pho committed Apr 16, 2012
  6. Merge pull request #10 from mvv/x509-pem-fix

    depressed-pho committed Apr 16, 2012
    Fix X509 PEM reading/writing.
Commits on Apr 9, 2012
  1. Fix X509 PEM reading/writing.

    mvv committed Apr 9, 2012
Commits on Apr 5, 2012
  1. Merge pull request #9 from yav/master

    depressed-pho committed Apr 5, 2012
    Added raw pointer read/write operations
Commits on Mar 8, 2012
  1. Bump version to 0.10.1.4

    depressed-pho committed Mar 8, 2012
Commits on Mar 4, 2012
  1. Bump version to 0.10.1.3

    depressed-pho committed Mar 4, 2012
  2. Merge pull request #6 from bgamari/master

    depressed-pho committed Mar 4, 2012
    Various fixes for GHC 7.5
Commits on Feb 19, 2012
  1. Use unsafeForeignPtrToPtr from Foreign.ForeignPtr.Unsafe

    bgamari committed Feb 19, 2012
    Export from Foreign.ForeignPtr deprecated as of GHC 7.5
  2. Use unsafePerformIO from System.IO.Unsafe

    bgamari committed Feb 19, 2012
    Foreign.unsafePerformIO is deprecated as of GHC 7.5
  3. Add Num to constraints with Bits

    bgamari committed Feb 19, 2012
    Bits no longer implies Num as of GHC 7.5
Commits on Dec 22, 2011
  1. OpenSSL.Session: SSL, SSLContext, SSLResult, ShutdownType and Verific…

    depressed-pho committed Dec 22, 2011
    …ationMode are now instances of Typeable.
Commits on Nov 15, 2011
  1. Bump version to 0.10.1.2

    depressed-pho committed Nov 15, 2011
  2. It causes an undefined behaviour to call SSL_write() with an empty bu…

    depressed-pho committed Nov 15, 2011
    …ffer, according to the OpenSSL docs
  3. Improve the error handling in OpenSSL.Session

    depressed-pho committed Nov 15, 2011
      - write/tryWrite should throw EPIPE for cleanly-closed connections
        rather than EOF.
    
      - shutdown/tryShutdown shouldn't throw an exception when a remote
        peer sends us a "close notify" alert and closes the connection
        without waiting for our reply.
    
      - ProtocolError should contain an error message string.
Commits on Nov 12, 2011
  1. Fixed erroneous error handling in OpenSSL.Session

    depressed-pho committed Nov 12, 2011
    SSL_get_error() must be called within the OS thread which caused
    the failed operation as it inspects the thread-local storage.
Commits on Nov 1, 2011
  1. Update NEWS

    depressed-pho committed Nov 1, 2011
  2. Merge pull request #4 from mvv/evp-refactoring

    depressed-pho committed Nov 1, 2011
    EVP refactoring
Commits on Oct 28, 2011
Commits on Sep 22, 2011
  1. Bump version to 0.10.1.1

    depressed-pho committed Sep 22, 2011
Commits on Sep 18, 2011
  1. update NEWS

    depressed-pho committed Sep 18, 2011