Get MD5 code building for Linux

This commit is contained in:
Adam Novak 2022-02-13 16:36:24 -05:00
parent d249f38b14
commit 498b1f12e9
4 changed files with 63 additions and 4 deletions

View file

@ -1,5 +1,11 @@
#include "MD5.h"
#if LIBRARY_TYPE == LIBRARY_ARDUINO
#include "Arduino.h"
#elif LIBRARY_TYPE == LIBRARY_C
#include <cstdlib>
#endif
MD5::MD5()
{
//nothing
@ -298,4 +304,4 @@ unsigned char* MD5::make_hash(char *arg,size_t size)
MD5Update(&context, arg, size);
MD5Final(hash, &context);
return hash;
}
}