Last change
on this file since 37ef2cb was
1bdc669,
checked in by GitHub <noreply@…>, at 2023-02-23T23:48:10Z
|
Migrate internal users of md5.h to using GChecksum directly (#169)
- Use GChecksum directly rather than md5 wrapper
- Mark md5 functions as deprecated.
- Migrate more users of md5.h to GChecksum
|
-
Property mode set to
100644
|
File size:
821 bytes
|
Line | |
---|
1 | #ifndef _MD5_H |
---|
2 | #define _MD5_H |
---|
3 | |
---|
4 | #include <glib.h> |
---|
5 | #include <gmodule.h> |
---|
6 | |
---|
7 | typedef guint8 md5_byte_t; |
---|
8 | typedef GChecksum *md5_state_t; |
---|
9 | |
---|
10 | #define MD5_HASH_SIZE 16 |
---|
11 | |
---|
12 | #ifdef __GNUC__ |
---|
13 | #define __MD5_NON_PUBLIC_DEPRECATION__ __attribute__((deprecated("md5.h will be removed from Bitlbee's public API. Please use another library (such as GLib's gchecksum) instead"))) |
---|
14 | #else |
---|
15 | #define __MD5_NON_PUBLIC_DEPRECATION__ |
---|
16 | #endif |
---|
17 | |
---|
18 | void md5_init(md5_state_t *) __MD5_NON_PUBLIC_DEPRECATION__; |
---|
19 | void md5_append(md5_state_t *, const guint8 *, unsigned int) __MD5_NON_PUBLIC_DEPRECATION__; |
---|
20 | void md5_finish(md5_state_t *, guint8 digest[MD5_HASH_SIZE]) __MD5_NON_PUBLIC_DEPRECATION__; |
---|
21 | void md5_digest_keep(md5_state_t *, guint8 digest[MD5_HASH_SIZE]) __MD5_NON_PUBLIC_DEPRECATION__; |
---|
22 | void md5_free(md5_state_t *) __MD5_NON_PUBLIC_DEPRECATION__; |
---|
23 | |
---|
24 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.