summaryrefslogtreecommitdiff
path: root/src/ne_privssl.h
diff options
context:
space:
mode:
authorJoe Orton <notroj@users.noreply.github.com>2005-11-29 20:54:50 +0000
committerJoe Orton <notroj@users.noreply.github.com>2005-11-29 20:54:50 +0000
commit66930049bc451cfc25fedf5c595c7fe995055814 (patch)
tree1851b45620b2680abb38d333b6afd51329689c18 /src/ne_privssl.h
parent9e04b1509a3eba6b88500812d2ed0283dfc4313d (diff)
downloadneon-git-66930049bc451cfc25fedf5c595c7fe995055814.tar.gz
* macros/neon.m4 (NEON_SSL): Check for gnutls_session_get_data2.
* src/ne_privssl.h (ne_ssl_context_s) [HAVE_GNUTLS && HAVE_GNUTLS_SESSION_GET_DATA2]: Just store a single gnutls_datum for the cache.client field. * src/ne_socket.c [HAVE_GNUTLS] (ne_sock_connect_ssl): Use gnutls_session_get_data2 if available; otherwise do check for errors from _get_data.
Diffstat (limited to 'src/ne_privssl.h')
-rw-r--r--src/ne_privssl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ne_privssl.h b/src/ne_privssl.h
index f5a950f..46661c6 100644
--- a/src/ne_privssl.h
+++ b/src/ne_privssl.h
@@ -58,10 +58,14 @@ struct ne_ssl_context_s {
struct {
gnutls_datum key, data;
} server;
+#if defined(HAVE_GNUTLS_SESSION_GET_DATA2)
+ gnutls_datum client;
+#else
struct {
char *data;
size_t len;
} client;
+#endif
} cache;
};