- logthing(LOGTHING_NOTICE, "Getting keyid 0x%llX",
- keyid);
- if (config.dbbackend->fetch_key(keyid, &publickey,
- false)) {
+ if (ishex) {
+ result = config.dbbackend->fetch_key(keyid,
+ &publickey, false);
+ } else {
+ result = config.dbbackend->fetch_key_text(
+ search,
+ &publickey);
+ }
+ if (result) {
+ logthing(LOGTHING_NOTICE,
+ "Found %d key(s) for search %s",
+ result,
+ search);