deprecate gimp_md5_get_digest() in favor of GCheckSum.
2008-03-28 Sven Neumann <sven@gimp.org> * libgimpmath/gimpmd5.[ch]: deprecate gimp_md5_get_digest() in favor of GCheckSum. * libgimpmath/test-md5.c: undef GIMP_DISABLE_DEPRECATED. svn path=/trunk/; revision=25288
This commit is contained in:

committed by
Sven Neumann

parent
8203e1ac50
commit
b29a050c13
@ -1,3 +1,10 @@
|
|||||||
|
2008-03-28 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* libgimpmath/gimpmd5.[ch]: deprecate gimp_md5_get_digest() in
|
||||||
|
favor of GCheckSum.
|
||||||
|
|
||||||
|
* libgimpmath/test-md5.c: undef GIMP_DISABLE_DEPRECATED.
|
||||||
|
|
||||||
2008-03-28 Sven Neumann <sven@gimp.org>
|
2008-03-28 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* libgimpthumb/gimpthumb-utils.c (gimp_thumb_png_name): use
|
* libgimpthumb/gimpthumb-utils.c (gimp_thumb_png_name): use
|
||||||
|
@ -51,19 +51,14 @@ static void gimp_md5_final (GimpMD5Context *ctx,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gimp_md5_get_digest:
|
* gimp_md5_get_digest:
|
||||||
* @buffer: byte buffer
|
* @buffer: byte buffer
|
||||||
* @buffer_size: buffer size (in bytes) or -1 if @buffer is nul-terminated.
|
* @buffer_size: buffer size (in bytes) or -1 if @buffer is nul-terminated.
|
||||||
* @digest: 16 bytes buffer receiving the hash code.
|
* @digest: 16 bytes buffer receiving the hash code.
|
||||||
|
*
|
||||||
|
* This function is deprecated! Use %GChecksum from GLib instead.
|
||||||
*
|
*
|
||||||
* Get the md5 hash of a buffer. The result is put in the 16 bytes
|
* Get the md5 hash of a buffer. The result is put in the 16 bytes
|
||||||
* buffer @digest.
|
* buffer @digest. For more information see RFC 1321.
|
||||||
*
|
|
||||||
* The MD5 algorithm takes as input a message of arbitrary length and
|
|
||||||
* produces as output a 128-bit "fingerprint" or "message digest" of
|
|
||||||
* the input. It is conjectured that it is computationally infeasible
|
|
||||||
* to produce two messages having the same message digest, or to
|
|
||||||
* produce any message having a given prespecified target message
|
|
||||||
* digest. For more information see RFC 1321.
|
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gimp_md5_get_digest (const gchar *buffer,
|
gimp_md5_get_digest (const gchar *buffer,
|
||||||
|
@ -28,10 +28,13 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
||||||
|
#ifndef GIMP_DISABLE_DEPRECATED
|
||||||
|
|
||||||
void gimp_md5_get_digest (const gchar *buffer,
|
void gimp_md5_get_digest (const gchar *buffer,
|
||||||
gint buffer_size,
|
gint buffer_size,
|
||||||
guchar digest[16]);
|
guchar digest[16]);
|
||||||
|
|
||||||
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
#undef GIMP_DISABLE_DEPRECATED
|
||||||
#include "gimpmd5.h"
|
#include "gimpmd5.h"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user