Don't hardcode ver, update node name, and add tests

This commit is contained in:
Luca Matei Pintilie
2026-08-19 21:30:27 +02:00
parent 567b139e1c
commit df83dd19ae
10 changed files with 223 additions and 13 deletions
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include <xmpp/xmpp_stanza.hpp>
namespace Xmpp
{
/**
* Generate a verification string according to XEP-0115
* https://xmpp.org/extensions/xep-0115.html#ver
*
* This does NOT support Service Discovery Extensions (XEP-0128).
* Nor does this sort identities by language
*/
const std::string hash_disco_sha1(const Stanza &stanza);
}