X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..a5709854a8f0dc833598a2e1aefbd3000aeefb41:/stglibs/crypto.lib/ag_md5.h diff --git a/stglibs/crypto.lib/ag_md5.h b/stglibs/crypto.lib/ag_md5.h index 3b54b502..b278f97b 100644 --- a/stglibs/crypto.lib/ag_md5.h +++ b/stglibs/crypto.lib/ag_md5.h @@ -3,7 +3,11 @@ #include -#include "os_int.h" +#include "stg/os_int.h" + +#ifdef __cplusplus +extern "C" { +#endif struct MD5Context { uint32_t buf[4]; @@ -19,7 +23,6 @@ void MD5Init(struct MD5Context *ctx); void MD5Update(struct MD5Context*, char const*, unsigned); void MD5Final(unsigned char digest[16], struct MD5Context *ctx); void MD5Transform(uint32_t buf[4], uint32_t const in[16]); -/* static void to64(char*, unsigned long, int); */ char *libshadow_md5_crypt(const char*, const char*); char *pw_encrypt(const char*, const char*); @@ -27,4 +30,8 @@ char *pw_encrypt(const char*, const char*); char *make_ag_hash(time_t salt, const char *clear); int check_ag_hash(time_t salt, const char *clear, const char *hash); -#endif /* _MD5_H */ +#ifdef __cplusplus +} +#endif + +#endif