diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-11 22:28:52 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-12 03:17:21 +0200 |
commit | 835365b817285abf136fc8509ae9d1bf97f55dff (patch) | |
tree | dd4dab0f7ad44fb3145613d31e75527cdca405f2 /lib/libalpm/md5.h | |
parent | c9cc2332cfe59f69ab28b3b928794aa5d24342bc (diff) | |
download | pacman-835365b817285abf136fc8509ae9d1bf97f55dff.tar.gz pacman-835365b817285abf136fc8509ae9d1bf97f55dff.tar.xz |
Update MD5 routines with changes from PolarSSL
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/md5.h')
-rw-r--r-- | lib/libalpm/md5.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libalpm/md5.h b/lib/libalpm/md5.h index ddcea8c7..d03013a2 100644 --- a/lib/libalpm/md5.h +++ b/lib/libalpm/md5.h @@ -1,7 +1,12 @@ /* * RFC 1321 compliant MD5 implementation * - * Copyright (C) 2006-2007 Christophe Devine + * Copyright (C) 2006-2010, Brainspark B.V. + * + * This file is part of PolarSSL (http://www.polarssl.org) + * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> + * + * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,10 +21,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - #ifndef _MD5_H #define _MD5_H +#include <string.h> + /** * \brief MD5 context structure */ @@ -38,7 +44,7 @@ md5_context; * \param ilen length of the input data * \param output MD5 checksum result */ -void md5( unsigned char *input, int ilen, unsigned char output[16] ); +void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ); /** * \brief Output = MD5( file contents ) |