[xmppd-dev] commit r1528 - in trunk/jabberd14: . jabberd man
mail at jabberd.org
mail at jabberd.org
Mon May 5 02:10:43 CEST 2008
Author: mawis
Date: Mon May 5 02:10:32 2008
New Revision: 1528
Log:
Removing GnuTLS/OpenPGP trustdb support, as this is not supported by newer versions of GnuTLS anymore.
Modified:
trunk/jabberd14/ChangeLog
trunk/jabberd14/jabberd/mio_tls.cc
trunk/jabberd14/man/jabber.xml.5.in
Modified: trunk/jabberd14/ChangeLog
==============================================================================
--- trunk/jabberd14/ChangeLog (original)
+++ trunk/jabberd14/ChangeLog Mon May 5 02:10:32 2008
@@ -1,3 +1,7 @@
+2008-05-05 Matthias Wimmer <m at tthias.eu>
+
+ * jabberd/mio_tls.cc: patch by Martin Matuschka to support newer GnuTLS
+
2008-04-30 Matthias Wimmer <m at tthias.eu>
* jabberd/jabberd.h: removing the xmlnode vattrib functions
Modified: trunk/jabberd14/jabberd/mio_tls.cc
==============================================================================
--- trunk/jabberd14/jabberd/mio_tls.cc (original)
+++ trunk/jabberd14/jabberd/mio_tls.cc Mon May 5 02:10:32 2008
@@ -612,7 +612,7 @@
}
// load OpenPGP key/certificate
- ret = gnutls_certificate_set_openpgp_key_file(current_credentials, pubfile, privfile);
+ ret = gnutls_certificate_set_openpgp_key_file(current_credentials, pubfile, privfile, GNUTLS_OPENPGP_FMT_BASE64);
if (ret < 0) {
log_error(NULL, "Error loading OpenPGP key pub=%s/priv=%s: %s", pubfile, privfile, gnutls_strerror(ret));
continue;
@@ -631,7 +631,7 @@
}
// load the OpenPGP keyring
- ret = gnutls_certificate_set_openpgp_keyring_file(current_credentials, file);
+ ret = gnutls_certificate_set_openpgp_keyring_file(current_credentials, file, GNUTLS_OPENPGP_FMT_BASE64);
if (ret < 0) {
log_error(NULL, "Error loading OpenPGP keyring %s: %s", file, gnutls_strerror(ret));
continue;
@@ -640,23 +640,6 @@
continue;
}
- // load GnuPG trustdb
- if (j_strcmp(xmlnode_get_localname(cur), "trustdb") == 0) {
- char const *const file = xmlnode_get_data(cur);
-
- if (file == NULL) {
- log_warn(NULL, "Initializing TLS subsystem: <trustdb/> element inside the TLS configuration, that does not contain a file-name.");
- continue;
- }
-
- // load the GnuPG trustdb
- ret = gnutls_certificate_set_openpgp_trustdb(current_credentials, file);
- if (ret < 0) {
- log_error(NULL, "Error loading GnuPG trustdb %s: %s", file, gnutls_strerror(ret));
- continue;
- }
- }
-
// setup protocols to use
if (j_strcmp(xmlnode_get_localname(cur), "protocols") == 0) {
char const *const protocols_data = xmlnode_get_data(cur);
Modified: trunk/jabberd14/man/jabber.xml.5.in
==============================================================================
--- trunk/jabberd14/man/jabber.xml.5.in (original)
+++ trunk/jabberd14/man/jabber.xml.5.in Mon May 5 02:10:32 2008
@@ -361,10 +361,6 @@
Load an OpenPGP keyring from the file specified using the content of this
element.
.TP
-.B TLS setting: cfg:jabber/cfg:io/cfg:tls/cfg:credentials/cfg:trustdb
-Load a GnuPG trust database from the file specified using the content of
-this element.
-.TP
.B TLS setting: cfg:jabber/cfg:io/cfg:tls/cfg:credentials/cfg:protocols
This setting is used to specify which version of the TLS protocol should be
used and in which order they should be prefered. If you omit this setting,
More information about the dev
mailing list