diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-08 18:17:16 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-08 18:17:16 +0100 |
| commit | ed333008ad25e2ca4d590cf2052337ef6cf1af71 (patch) | |
| tree | 5a8e2efbce3029cd4066dcbd5b4802d70b4e00f5 /lib/Plugins/Python_hash.h | |
| parent | f80fd803eab649f6b245b3169b165ba2fd170a6e (diff) | |
| download | abrt-ed333008ad25e2ca4d590cf2052337ef6cf1af71.tar.gz abrt-ed333008ad25e2ca4d590cf2052337ef6cf1af71.tar.xz abrt-ed333008ad25e2ca4d590cf2052337ef6cf1af71.zip | |
python hook: move UUID generation to abrtd; generate REASON, add it to bz title
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Python_hash.h')
| -rw-r--r-- | lib/Plugins/Python_hash.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/Plugins/Python_hash.h b/lib/Plugins/Python_hash.h new file mode 100644 index 0000000..cc1d2c4 --- /dev/null +++ b/lib/Plugins/Python_hash.h @@ -0,0 +1,29 @@ +/* vi: set sw=4 ts=4: */ +/* + * md5.c - Compute MD5 checksum of strings according to the + * definition of MD5 in RFC 1321 from April 1992. + * + * Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. + * + * Copyright (C) 1995-1999 Free Software Foundation, Inc. + * Copyright (C) 2001 Manuel Novoa III + * Copyright (C) 2003 Glenn L. McGrath + * Copyright (C) 2003 Erik Andersen + * + * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. + */ + +#define MD5_RESULT_LEN 16 + +typedef struct md5_ctx_t { + uint32_t A; + uint32_t B; + uint32_t C; + uint32_t D; + uint64_t total; + uint32_t buflen; + char buffer[128]; +} md5_ctx_t; +void md5_begin(md5_ctx_t *ctx); +void md5_hash(const void *data, size_t length, md5_ctx_t *ctx); +void md5_end(void *resbuf, md5_ctx_t *ctx); |
