19#ifdef DIGEST_TESTSUITE
23#include <zypp/Digest.h>
24#include <zypp/base/PtrTypes.h>
39#ifdef DIGEST_TESTSUITE
40 int main(
int argc,
char *argv[])
46 if(argc > 1 && std::string(argv[argpos]) ==
"--openssl")
54 cerr <<
"Usage: " << argv[0] <<
" <DIGESTNAME> <FILE>" << endl;
58 const char* digestname = argv[argpos++];
59 const char* fn = argv[argpos++];
61 std::ifstream file(fn);
66 cout << digestname <<
"(" << fn <<
")= " << digest << endl;
68 cout << digest <<
" " << fn << endl;
std::string digest()
get hex string representation of the digest
Easy-to use interface to the ZYPP dependency resolver.
virtual bool askUserToAcceptNoDigest(const zypp::Pathname &file)
virtual bool askUserToAcceptWrongDigest(const Pathname &file, const std::string &requested, const std::string &found)
virtual bool askUserToAccepUnknownDigest(const Pathname &file, const std::string &name)