From 7f25bdff3a0fa55ba897964d5c82475b45f3325a Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:26 +0000 Subject: Dsync merge Author: jgg Date: 1999-01-18 06:20:07 GMT Dsync merge --- apt-pkg/contrib/md5.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apt-pkg/contrib/md5.h') diff --git a/apt-pkg/contrib/md5.h b/apt-pkg/contrib/md5.h index 84863f7c0..9cfa6ae72 100644 --- a/apt-pkg/contrib/md5.h +++ b/apt-pkg/contrib/md5.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: md5.h,v 1.2 1998/11/25 23:54:45 jgg Exp $ +// $Id: md5.h,v 1.3 1999/01/18 06:20:08 jgg Exp $ /* ###################################################################### MD5SumValue - Storage for a MD5Sum @@ -39,9 +39,13 @@ class MD5SumValue // Accessors bool operator ==(const MD5SumValue &rhs) const; string Value() const; - inline operator string() const {return Value();}; + inline void Value(unsigned char S[16]) + {for (int I = 0; I != sizeof(Sum); I++) S[I] = Sum[I];}; + inline operator string() const {return Value();}; bool Set(string Str); - + inline void Set(unsigned char S[16]) + {for (int I = 0; I != sizeof(Sum); I++) Sum[I] = S[I];}; + MD5SumValue(string Str); MD5SumValue(); }; -- cgit v1.2.3