mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
20 lines
334 B
C++
20 lines
334 B
C++
#if !defined(CONF_OPENSSL)
|
|
|
|
#include "hash_ctxt.h"
|
|
|
|
#include <engine/external/md5/md5.h>
|
|
|
|
void md5_update(MD5_CTX *ctxt, const void *data, size_t data_len)
|
|
{
|
|
md5_append(ctxt, (const md5_byte_t *)data, data_len);
|
|
}
|
|
|
|
MD5_DIGEST md5_finish(MD5_CTX *ctxt)
|
|
{
|
|
MD5_DIGEST result;
|
|
md5_finish_(ctxt, result.data);
|
|
return result;
|
|
}
|
|
|
|
#endif
|