PublicKey key = readPublicKey(unKey.path());
MIL << "Key " << id << " " << key.name << " is not trusted" << std::endl;
// ok the key is not trusted, ask the user to trust it or not
- if ( report->askUserToTrustKey(key.id, key.name) )
+#warning We need the key details passed to the callback
+ if ( report->askUserToTrustKey(key.id, key.name, "") )
{
MIL << "User wants to trust key " << id << " " << key.name << std::endl;
//dumpFile(unKey.path());
else
{
// unknown key...
- if ( report->askUserToAcceptUnknownKey( id, "Unkown Key" ) )
+ if ( report->askUserToAcceptUnknownKey( file, id, "Unknown Key" ) )
{
MIL << "User wants to accept unknown key " << id << std::endl;
return true;
{
virtual bool askUserToAcceptUnsignedFile( const Pathname &file )
{ return true; }
- virtual bool askUserToAcceptUnknownKey( const std::string &keyid, const std::string &keyname )
+ virtual bool askUserToAcceptUnknownKey( const Pathname &file, const std::string &keyid, const std::string &keyname )
{ return true; }
- virtual bool askUserToTrustKey( const std::string &keyid, const std::string &keyname )
+ virtual bool askUserToTrustKey( const std::string &keyid, const std::string &keyname, const std::string &keydetails )
{ return true; }
virtual bool askUserToAcceptVerificationFailed( const Pathname &file, const std::string &keyid, const std::string &keyname )
{ return true; }