Mercurial > hg
changeset 1045:96be69d3a5fd
Verify signatures for empty status messages
The <status/> element is mandatory when signing (according to XEP-0027),
but some Jabber clients omit it.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 26 Nov 2006 18:05:31 +0100 |
parents | 52cfe9bf9840 |
children | a3748bd3d010 |
files | mcabber/src/jabglue.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Sun Nov 26 17:12:34 2006 +0100 +++ b/mcabber/src/jabglue.c Sun Nov 26 18:05:31 2006 +0100 @@ -1440,7 +1440,7 @@ gpgme_sigsum_t sigsum; // All parameters must be valid - if (!(xmldata && barejid && rname && text && *text)) + if (!(xmldata && barejid && rname && text)) return; if (!gpg_enabled()) @@ -2050,6 +2050,8 @@ (!ustmsg && m && m[0]) || (ustmsg && (!m || strcmp(ustmsg, m)))) hk_statuschange(r, rname, bpprio, timestamp, ust, ustmsg); // Presence signature processing + if (!ustmsg) + ustmsg = ""; // Some clients omit the <status/> element :-( check_signature(r, rname, xml_get_xmlns(xmldata, NS_SIGNED), ustmsg); }