]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/hashes.h
show in madison command again also source packages (LP: #614589)
[apt.git] / apt-pkg / contrib / hashes.h
index 86c0eb2ad831158a7e59d0db08d52991d465724e..264f7fe904434d2cd2dd995311405cda3d6f9291 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <algorithm>
 #include <vector>
+#include <cstring>
 
 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;