Gammu internals  1.38.0
md5-glib.c
Go to the documentation of this file.
1 
4 #include "md5.h"
5 #include <glib.h>
6 #include <string.h>
7 
8 void CalculateMD5(unsigned char *buffer, int length, char *checksum)
9 {
10  gchar *ret;
11  ret = g_compute_checksum_for_data(G_CHECKSUM_MD5, buffer, length);
12  strcpy(checksum, ret);
13  g_free(ret);
14 }
void CalculateMD5(unsigned char *buffer, int length, char *checksum)
Definition: md5-glib.c:8