X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/495e5cb25443e6606c0d02891e1f6610983e88cd..0fd68707605f42741574304e5d51582fe298a4b0:/apt-pkg/contrib/hashes.h?ds=sidebyside diff --git a/apt-pkg/contrib/hashes.h b/apt-pkg/contrib/hashes.h index 86c0eb2ad..264f7fe90 100644 --- a/apt-pkg/contrib/hashes.h +++ b/apt-pkg/contrib/hashes.h @@ -20,6 +20,7 @@ #include #include +#include using std::min; using std::vector; @@ -38,6 +39,9 @@ class HashString HashString(string StringedHashString); // init from str as "type:hash" HashString(); + // get hash type used + string HashType() { return Type; }; + // verify the given filename against the currently loaded hash bool VerifyFile(string filename) const;