~singpolyma/haskell-gnutls

These are ssize_t not size_t

The return negative for error cases and with newer GHCs lying causes a problem.
Update metadata for 0.3
Implement hash for sha1
Switch TLS to TLST to allow any Unexceptional base monad
runTLS' for when the caller is also using ExceptT
Switch monad transformer stack to a type alias

Since we already allowed injecting any Session via runTLS or throwing any Error
via throwE, this does not reduce safety at all but improves ergonomics
considerably.

The only downside here is that we must say goodbye to our transitional MonadIO
instance.
Export local throwE/catchE/fromExceptT helpers
Switch base of the transformer stack to UIO

A lot of the utilities are still in IO for now, and we still provide a
transitional MonadIO instance, but the transformer stack itself is Unexceptional now.
Switch from monads-tf and custom transformer to ExceptT

When this code was written ExceptT didn't exist yet, but there's no reason to
vendor a custom implementation of it any longer.  We're taking very little
advantage of the monads-tf features so just remove that dependency (and the
language extension reliance that goes with it).
We use tabs, so stop whining
9b318950 — John Millikin 9 years ago
Bump version to 0.2.
4edd87d2 — John Millikin 9 years ago
Remove references to gnutls_certificate_type_set_priority.

This function was deprecated at some point in the distant past, and has
now been removed from gnutls upstream. There is no good replacement, and
no current users of the Haskell wrapper, so the easiest solution is to
remove setPriority from the binding.
90aa9e34 — John Millikin 9 years ago
Bump version to 0.1.6.
a8b81673 — Michael Alan Dorman 9 years ago
Fixups for AMP changes.
5588ba43 — John Millikin 11 years ago
Bump version to 0.1.5.
0d7a60a1 — John Millikin 11 years ago
Fix a crash due to out-of-order garbage collection of Session values.

GnuTLS has separate initialization and deinitialization procedures for
global and per-session state. Previously, haskell-gnutls used Haskell's
garbage collector (via ForeignPtr) to manage these separate states by
creating a dummy GlobalState type representing an initialized global
state. The Session type contained ForeignPtrs to the global and session
state, with the idea that GC would collect them both at the same time
(albeit in non-determinstic order).

It turns out that session deinitialization *requires* an initialized
global state, and calling gnutls_deinit() after gnutls_global_deinit()
can cause a crash.

This patch solves the crash by removing the GlobalState ForeignPtr hack,
and ensuring that gnutls_global_deinit() is always called after
gnutls_deinit().

Originally reported by Keven McKenzie and Joey Hess.
6456ba52 — John Millikin 11 years ago
Update source-repository locations.
173fd083 — John Millikin 11 years ago
Bump version to 0.1.4.
a89dec48 — John Millikin 11 years ago
Remove maximum dependency version on bytestring.
Next