- logthing(LOGTHING_NOTICE, "Getting keyid %llX",
- keyid);
- if (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);