Gammu internals  1.38.0
md5-glib.c File Reference
#include "md5.h"
#include <glib.h>
#include <string.h>
Include dependency graph for md5-glib.c:

Go to the source code of this file.

Functions

void CalculateMD5 (unsigned char *buffer, int length, char *checksum)
 

Function Documentation

§ CalculateMD5()

void CalculateMD5 ( unsigned char *  buffer,
int  length,
char *  checksum 
)

Wrapper for glib checksum functionality.

Definition at line 8 of file md5-glib.c.

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 }