Properly play a holdtime message if the announce-holdtime option is
[asterisk-bristuff.git] / include / asterisk / md5.h
blobf738bd5b6286022f7995544589a1cbc0e31521fb
1 /*
2 * Asterisk -- An open source telephony toolkit.
4 * Copyright (C) 1999 - 2005, Digium, Inc.
6 * Mark Spencer <markster@digium.com>
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
19 /*!\file
20 * \brief MD5 digest functions
23 #ifndef _ASTERISK_MD5_H
24 #define _ASTERISK_MD5_H
26 #include <inttypes.h>
28 struct MD5Context {
29 uint32_t buf[4];
30 uint32_t bits[2];
31 unsigned char in[64];
34 void MD5Init(struct MD5Context *context);
35 void MD5Update(struct MD5Context *context, unsigned char const *buf,
36 unsigned len);
37 void MD5Final(unsigned char digest[16], struct MD5Context *context);
38 void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
40 #endif /* _ASTERISK_MD5_H */