Files
biboumi/louloulibs/xmpp/auth.cpp
T
louiz’ 99a4ddedaf Remove the embedded sha1 code, and use one of botan or gcrypt
This adds a hard dependency on one of Botan or gcrypt. Botan is already a
recommended dependency, and gcrypt is probably packaged almost everywhere,
so this should not be a big deal.

ref #3241
2017-03-06 00:57:33 +01:00

9 lines
182 B
C++

#include <xmpp/auth.hpp>
#include <utils/sha1.hpp>
std::string get_handshake_digest(const std::string& stream_id, const std::string& secret)
{
return sha1(stream_id + secret);
}