Changeset a4ac9c4 for lib/sha1.h
- Timestamp:
- 2023-04-01T20:09:39Z (13 months ago)
- Branches:
- master
- Children:
- 552da22
- Parents:
- 59c9fa4d
- git-author:
- Jelmer Vernooij <jelmer@…> (01-04-23 20:09:39)
- git-committer:
- GitHub <noreply@…> (01-04-23 20:09:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/sha1.h
r59c9fa4d ra4ac9c4 6 6 #include <gmodule.h> 7 7 8 #ifdef __GNUC__ 9 #define __SHA1_NON_PUBLIC_DEPRECATION__ __attribute__((deprecated("sha1.h will be removed from Bitlbee's public API. Please use another library (such as GLib's gchecksum) instead"))) 10 #else 11 #define __SHA1_NON_PUBLIC_DEPRECATION__ 12 #endif 13 8 14 #define SHA1_HASH_SIZE 20 9 15 10 16 typedef GChecksum *sha1_state_t; 11 17 12 void sha1_init(sha1_state_t *) ;13 void sha1_append(sha1_state_t *, const guint8 *, unsigned int) ;14 void sha1_finish(sha1_state_t *, guint8 digest[SHA1_HASH_SIZE]) ;15 void sha1_hmac(const char *, size_t, const char *, size_t, guint8 digest[SHA1_HASH_SIZE]) ;18 void sha1_init(sha1_state_t *) __SHA1_NON_PUBLIC_DEPRECATION__; 19 void sha1_append(sha1_state_t *, const guint8 *, unsigned int) __SHA1_NON_PUBLIC_DEPRECATION__; 20 void sha1_finish(sha1_state_t *, guint8 digest[SHA1_HASH_SIZE]) __SHA1_NON_PUBLIC_DEPRECATION__; 21 void sha1_hmac(const char *, size_t, const char *, size_t, guint8 digest[SHA1_HASH_SIZE]) ; 16 22 char *sha1_random_uuid(sha1_state_t *); 17 23
Note: See TracChangeset
for help on using the changeset viewer.