summaryrefslogtreecommitdiff
path: root/src/ne_privssl.h
diff options
context:
space:
mode:
authorJoe Orton <notroj@users.noreply.github.com>2008-01-31 11:40:22 +0000
committerJoe Orton <notroj@users.noreply.github.com>2008-01-31 11:40:22 +0000
commite3daeee4d1ad602b22fb4092df24892cd9e3e117 (patch)
tree2d7572c6c4f2dd15b07daa6abbf5b5897501cea2 /src/ne_privssl.h
parenta4ccf7e7f378c513818163d9d4ca9266c9704d5c (diff)
downloadneon-git-e3daeee4d1ad602b22fb4092df24892cd9e3e117.tar.gz
Add libneon-gnutls support library to allow use of external signing
callback with GnuTLS: * src/lib_gnutls.c, src/ne_gnutls.h, neon-gnutls.pc.in: New files. * src/ne_privssl.h (struct ne_ssl_context_s): Add sign_func, sign_data fields. * macros/neon.m4 (NEON_SSL): Define NE_SSL_LIBNAME; check for gnutls_sign_callback_set, add new exports NE_SSL_CFLAGS and NE_LIBSSL_LTFLAGS. Export NEON_LIBEXT in place of NEON_TARGET, NE_LIBNEON_LTFLAGS in place of NEON_LINK_FLAGS; * src/Makefile.in: Add and adjust targets to build libneon-gnutls iff configured with GnuTLS support. * Makefile.in (install-lib-ssl-no, install-lib-ssl-gnutls): New targets. * neon-config.in: Add --la-file=gnutls, --cflags=gnutls support. * src/ne_socket.c (ne_sock_connect_ssl): Set up the sign_func callback if non-NULL. * configure.in: Adjust for NEON_LINK_FLAGS rename. Define NE_LIBSSL_LTFLAGS. Generate neon-gnutls.pc.
Diffstat (limited to 'src/ne_privssl.h')
-rw-r--r--src/ne_privssl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ne_privssl.h b/src/ne_privssl.h
index 7222688..46c28cb 100644
--- a/src/ne_privssl.h
+++ b/src/ne_privssl.h
@@ -1,6 +1,6 @@
/*
SSL interface definitions internal to neon.
- Copyright (C) 2003-2005, Joe Orton <joe@manyfish.co.uk>
+ Copyright (C) 2003-2005, 2008, Joe Orton <joe@manyfish.co.uk>
Copyright (C) 2004, Aleix Conchillo Flaque <aleix@member.fsf.org>
This library is free software; you can redistribute it and/or
@@ -70,6 +70,11 @@ struct ne_ssl_context_s {
} client;
#endif
} cache;
+
+#ifdef HAVE_GNUTLS_SIGN_CALLBACK_SET
+ gnutls_sign_func sign_func;
+ void *sign_data;
+#endif
};
typedef gnutls_session ne_ssl_socket;