diff options
| author | Julian Andres Klode <jak@debian.org> | 2020-01-14 12:57:54 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2020-01-14 12:57:54 +0000 |
| commit | 5db3a38926aa820546c411dd9f49f57eea24cd9e (patch) | |
| tree | b794739c375d7c984c4190be44b9ed678e9bf0da /apt-pkg/deb/deblistparser.cc | |
| parent | cfeae24843e8357c7e8d2ff3b23ee81cac330017 (diff) | |
| parent | 8c1a37e12790a23f3b132899485e011f9134b483 (diff) | |
Merge branch 'pu/gcrypt2' into 'master'
Use Libgcrypt for hashing purposes
See merge request apt-team/apt!89
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
| -rw-r--r-- | apt-pkg/deb/deblistparser.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 88b41ad30..21d1736e4 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -17,8 +17,8 @@ #include <apt-pkg/crc-16.h> #include <apt-pkg/deblistparser.h> #include <apt-pkg/error.h> +#include <apt-pkg/hashes.h> #include <apt-pkg/macros.h> -#include <apt-pkg/md5.h> #include <apt-pkg/pkgcache.h> #include <apt-pkg/strutl.h> #include <apt-pkg/tagfile-keys.h> @@ -298,10 +298,10 @@ APT::StringView debListParser::Description_md5() if (desc == "\n") return StringView(); - MD5Summation md5; + Hashes md5(Hashes::MD5SUM); md5.Add(desc.data(), desc.size()); md5.Add("\n"); - MD5Buffer = md5.Result(); + MD5Buffer = md5.GetHashString(Hashes::MD5SUM).HashValue(); return StringView(MD5Buffer); } else if (likely(value.size() == 32)) |
