summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-03-28 14:56:55 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-03-28 14:56:55 +0000
commit67b6177c89403561828dd61e7c0d977e0f89052c (patch)
tree90fcb549356a1eff27869ab6364efeef812da30f /macros
parent9ed07d81d61366867c89842df75fc57aec73a6bd (diff)
downloadneon-67b6177c89403561828dd61e7c0d977e0f89052c.tar.gz
Rebuild the peer cert chain correctly, with suitable GnuTLS support:
* macros/neon.m4 (NEON_SSL): Check for gnutls_certificate_get_x509_cas. * src/ne_gnutls.c [HAVE_GNUTLS_CERTIFICATE_GET_X509_CAS] (find_issuer): New function. (make_peers_chain): Take creds object. [HAVE_GNUTLS_CERTIFICATE_GET_X509_CAS]: Rebuild the cert chain from list of trusted CAs. (ne__negotiate_ssl): Pass creds object to make_peers_chain. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1427 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'macros')
-rw-r--r--macros/neon.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index 0a207ea..d4c5daa 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -972,7 +972,8 @@ gnutls)
# Check for functions in later releases
NE_CHECK_FUNCS(gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
- gnutls_sign_callback_set)
+ gnutls_sign_callback_set \
+ gnutls_certificate_get_x509_cas)
# Check for iconv support if using the new RDN access functions:
if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then