- logthing(LOGTHING_NOTICE, "Getting keyid 0x%llX",
- keyid);
- if (fetch_key(keyid, &publickey, false)) {
+ case OP_HGET:
+ if (op == OP_HGET) {
+ parse_skshash(search, &hash);
+ result = config.dbbackend->fetch_key_skshash(
+ &hash, &publickey);
+ } else 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);