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
9 lines
182 B
C++
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);
|
|
}
|