libzypp
15.28.6
|
Callbacks from signature verification workflow. More...
#include <KeyRing.h>
Public Types | |
enum | KeyTrust { KEY_DONT_TRUST = 0, KEY_TRUST_TEMPORARILY, KEY_TRUST_AND_IMPORT } |
User reply options for the askUserToTrustKey callback. More... | |
Public Types inherited from zypp::callback::ReportBase | |
typedef callback::UserData | UserData |
typedef UserData::ContentType | ContentType |
Public Member Functions | |
virtual KeyTrust | askUserToAcceptKey (const PublicKey &key, const KeyContext &keycontext=KeyContext()) |
Ask user to trust and/or import the key to trusted keyring. More... | |
virtual void | infoVerify (const std::string &file_r, const PublicKeyData &keyData_r, const KeyContext &keycontext=KeyContext()) |
Informal callback showing the trusted key that will be used for verification. More... | |
virtual bool | askUserToAcceptUnsignedFile (const std::string &file, const KeyContext &keycontext=KeyContext()) |
virtual bool | askUserToAcceptUnknownKey (const std::string &file, const std::string &id, const KeyContext &keycontext=KeyContext()) |
we DONT know the key, only its id, but we have never seen it, the difference with trust key is that if you dont have it, you can't import it later. More... | |
virtual bool | askUserToAcceptVerificationFailed (const std::string &file, const PublicKey &key, const KeyContext &keycontext=KeyContext()) |
The file filedesc is signed but the verification failed. More... | |
Public Member Functions inherited from zypp::callback::ReportBase | |
virtual void | report (const UserData &userData_r=UserData()) |
The most generic way of sending/receiving data. More... | |
virtual | ~ReportBase () |
Callbacks from signature verification workflow.
Per default all methods answer false
. This may be canged by calling KeyRing::setDefaultAccept.
User reply options for the askUserToTrustKey callback.
filedes | Name of the file (repo alias) or filename if not available |
|
virtual |
Ask user to trust and/or import the key to trusted keyring.
Definition at line 68 of file KeyRing.cc.
|
virtual |
Informal callback showing the trusted key that will be used for verification.
Definition at line 61 of file KeyRing.cc.
|
virtual |
Definition at line 64 of file KeyRing.cc.
|
virtual |
we DONT know the key, only its id, but we have never seen it, the difference with trust key is that if you dont have it, you can't import it later.
The answer means continue yes or no?
Definition at line 77 of file KeyRing.cc.
|
virtual |
The file filedesc is signed but the verification failed.
filedesc | Filename or its description. |
Definition at line 80 of file KeyRing.cc.