From 835365b817285abf136fc8509ae9d1bf97f55dff Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 11 Aug 2011 15:28:52 -0500 Subject: Update MD5 routines with changes from PolarSSL Signed-off-by: Dan McGee --- lib/libalpm/md5.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/md5.h') 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 + * + * 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 . */ - #ifndef _MD5_H #define _MD5_H +#include + /** * \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 ) -- cgit v1.2.3-24-g4f1b