mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-08-07 14:02:13 -04:00
Get MD5 code building for Linux
This commit is contained in:
parent
d249f38b14
commit
498b1f12e9
4 changed files with 63 additions and 4 deletions
8
MD5.cpp
8
MD5.cpp
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue