diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-07-11 22:23:02 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-07-11 22:23:02 +0000 |
commit | 91557ef659fbcd1204c01f9267cfe38575f22d32 (patch) | |
tree | 4714f51b715b50522fa78765a6b36e8eaff8df10 /src/ne_gnutls.c | |
parent | 27a322c25ac9b6ba5f461ed46572cc6bfaefd683 (diff) | |
download | neon-91557ef659fbcd1204c01f9267cfe38575f22d32.tar.gz |
* src/ne_gnutls.c (ne__ssl_exit): Implement for recent versions of
GnuTLS, per comment.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1181 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_gnutls.c')
-rw-r--r-- | src/ne_gnutls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ne_gnutls.c b/src/ne_gnutls.c index 983375c..5c54281 100644 --- a/src/ne_gnutls.c +++ b/src/ne_gnutls.c @@ -1094,9 +1094,10 @@ int ne__ssl_init(void) void ne__ssl_exit(void) { /* No way to unregister the thread callbacks. Doomed. */ -#if 0 +#if LIBGNUTLS_VERSION_MAJOR > 1 || LIBGNUTLS_VERSION_MINOR > 3 \ + || (LIBGNUTLS_VERSION_MINOR == 3 && LIBGNUTLS_VERSION_PATCH >= 3) /* It's safe to call gnutls_global_deinit() here only with - * gnutls >= 1.3, since older versions don't refcount and + * gnutls >= 1.3., since older versions don't refcount and * doing so would prevent any other use of gnutls within * the process. */ gnutls_global_deinit(); |