21 #undef ZYPP_BASE_LOGGER_LOGGROUP
22 #define ZYPP_BASE_LOGGER_LOGGROUP "FileChecker"
39 MIL <<
"File " << file <<
" has no checksum available." << std::endl;
40 if ( report->askUserToAcceptNoDigest(file) )
42 MIL <<
"User accepted " << file <<
" with no checksum." << std::endl;
58 static std::map<std::string,std::string> exceptions;
59 static Date exceptionsAge;
61 if ( !exceptions.empty() && now-exceptionsAge > 12*
Date::hour )
64 WAR <<
"File " << file <<
" has wrong checksum " << real_checksum <<
" (expected " <<
_checksum <<
")" << endl;
67 WAR <<
"User accepted " << file <<
" with WRONG CHECKSUM. (remembered)" << std::endl;
72 WAR <<
"User accepted " << file <<
" with WRONG CHECKSUM." << std::endl;
87 MIL <<
"+ null check on " << file << endl;
94 for ( list<FileChecker>::const_iterator it =
_checkers.begin(); it !=
_checkers.end(); ++it )
103 ERR <<
"Invalid checker" << endl;
113 : _signature(signature)
127 getZYpp()->keyRing()->importKey(publickey,
false);
138 MIL <<
"checking " << file <<
" file validity using digital signature.." << endl;