summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha1.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-06-29 19:21:34 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-06-29 19:21:34 +0200
commit8f8ed8f4e50fd98aa43ee69971cac8bda55760f1 (patch)
tree79dbb2f29aca55db49f8e7213094a8423caa343e /apt-pkg/contrib/sha1.h
parentd953d210bb54accb416f2144104b79dcd29198ba (diff)
parent6f747894998e10649d0237fe5f7b9b85a5266f1f (diff)
merge with debian-experimental 0.8.16~exp2 release
Diffstat (limited to 'apt-pkg/contrib/sha1.h')
-rw-r--r--apt-pkg/contrib/sha1.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/apt-pkg/contrib/sha1.h b/apt-pkg/contrib/sha1.h
index 8ddd889f1..e7683fa7b 100644
--- a/apt-pkg/contrib/sha1.h
+++ b/apt-pkg/contrib/sha1.h
@@ -21,28 +21,11 @@
using std::string;
using std::min;
-class SHA1Summation;
+#include "hashsum_template.h"
-class SHA1SumValue
-{
- friend class SHA1Summation;
- unsigned char Sum[20];
-
- public:
-
- // Accessors
- bool operator ==(const SHA1SumValue &rhs) const;
- string Value() const;
- inline void Value(unsigned char S[20])
- {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[20])
- {for (int I = 0; I != sizeof(Sum); I++) Sum[I] = S[I];};
+class SHA1Summation;
- SHA1SumValue(string Str);
- SHA1SumValue();
-};
+typedef HashSumValue<160> SHA1SumValue;
class SHA1Summation
{