crypto: add public function xmpp_sha1_digest()

For example, XEP-0115 requires binary digest to be base64-encoded.
Add short function to simplify such a digest computation for a single
buffer. This function doesn't allocate memory. Therefore, it can't
fail and doesn't require strophe context (xmpp_ctx_t).
This commit is contained in:
Dmitry Podgorny
2017-06-26 00:56:03 +03:00
parent 2a474bd809
commit 1e422a70dd
3 changed files with 31 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
newer
- Support of handlers with the same callback function, but different
userdata
- New public function xmpp_sha1_digest()
0.9.1
- Fixed bug #95 (DNS lookup failing on Cygwin)