Commits on Mar 10, 2012
  1. Use modifyMVar in usingState for exception safety

    Also, force the state value, to avoid potential space leaks.
    committed Mar 10, 2012
  2. Fix space leak caused by updateMeasure

    modifyIORef does not force the value, so if the Measurement object is updated a
    bunch of times but never examined, the program will leak memory.
    committed Mar 10, 2012
Commits on Feb 11, 2012
  1. @vincenthz
  2. @vincenthz
Commits on Feb 7, 2012
  1. @vincenthz
  2. @vincenthz

    fix tests

    vincenthz committed Feb 7, 2012
  3. @vincenthz

    make recvData use strict bytestring as this more natural to the tls c…

    …ode.
    
    also add a recvData' to get the same behavior as before.
    vincenthz committed Feb 7, 2012
  4. @vincenthz
  5. @vincenthz

    refined wire helper function to support TLS opaque types directly.

    opaque type are length prefix bytestring and are used everywhere.
    the helper simplify their marshalling/unmarshalling and make it less
    error prone and semantically better.
    vincenthz committed Feb 7, 2012
  6. @vincenthz

    more documentation

    vincenthz committed Feb 7, 2012
Commits on Jan 25, 2012
  1. @vincenthz

    reorganize sendData slightly

    vincenthz committed Jan 25, 2012
  2. @vincenthz

    track in the context if the tls pipe is established or not.

    raise exception ConnectionNotEstablished in sendData and recvData if
    trying to use an invalid Context.
    vincenthz committed Jan 25, 2012
  3. @vincenthz

    documentation correction

    vincenthz committed Jan 25, 2012
Commits on Jan 19, 2012
  1. @vincenthz

    bump version for next version.

    vincenthz committed Jan 19, 2012
  2. @vincenthz
Commits on Jan 18, 2012
  1. @vincenthz
  2. @vincenthz

    Switch handshake to exception instead of returning a bool.

    Bool return value doesn't provide any information on why the handshake failed,
    hence remove the Bool value, and return (), and in case of handshake failure,
    raise a HandshakeFailed exception with the TLSError associated with it.
    vincenthz committed Jan 18, 2012
  3. @vincenthz

    tweak warnings flag for tests and remove useless orphan instances and…

    … missing signatures.
    vincenthz committed Jan 18, 2012
Commits on Jan 16, 2012
  1. @vincenthz

    bump version to 0.8.5

    vincenthz committed Jan 16, 2012
  2. @vincenthz

    catch exception during certificate callback and returns a certificate…

    … rejection on exception.
    vincenthz committed Jan 16, 2012
Commits on Dec 20, 2011
  1. @vincenthz

    bump version to 0.8.4

    vincenthz committed Dec 20, 2011
  2. @vincenthz
  3. @vincenthz
  4. @vincenthz
  5. @vincenthz
  6. @vincenthz
  7. @vincenthz

    switch client to process Server hello explicitely.

    also switch everything properly when receiving a server hello with session.
    vincenthz committed Dec 20, 2011
  8. @vincenthz

    send session if the user says so (through sessionResumeWith) in client.

    and properly switch to session resuming packet flow if resuming.
    vincenthz committed Dec 20, 2011
  9. @vincenthz
  10. @vincenthz
  11. @vincenthz
  12. @vincenthz

    callback to user when a session has been successfully established.

    it's up to the user to store the session id + session data for later recovery.
    vincenthz committed Dec 20, 2011
  13. @vincenthz