#include <openssl/md5.h>
void mMD5(unsigned char * packet, int size) {
unsigned char* res;
MD5((unsigned char*)&packet, size, (unsigned char*)&res);
for(int i=0; i<MD5_DIGEST_LENGTH; i++) {
printf("%02x", res[i]);
}
}
I get the error: undefined reference to MD5
Can anyone help me?