From 578938f1cdd5a06dd6fa28167d575ec980322a5d Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 16 Nov 2009 13:46:01 +0000 Subject: Update to git master branch of xserver. --- xorg-server/include/xsha1.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 xorg-server/include/xsha1.h (limited to 'xorg-server/include/xsha1.h') diff --git a/xorg-server/include/xsha1.h b/xorg-server/include/xsha1.h new file mode 100644 index 000000000..aab71067a --- /dev/null +++ b/xorg-server/include/xsha1.h @@ -0,0 +1,19 @@ +#ifndef XSHA1_H +#define XSHA1_H + +/* Initialize SHA1 computation. Returns NULL on error. */ +void *x_sha1_init(void); + +/* + * Add some data to be hashed. ctx is the value returned by x_sha1_init() + * Returns 0 on error, 1 on success. + */ +int x_sha1_update(void *ctx, void *data, int size); + +/* + * Place the hash in result, and free ctx. + * Returns 0 on error, 1 on success. + */ +int x_sha1_final(void *ctx, unsigned char result[20]); + +#endif -- cgit v1.2.3