- logthing(LOGTHING_NOTICE, "Getting keyid %llX",
- keyid);
- if (fetch_key(keyid, &publickey, false)) {
+ case OP_HGET:
+ if (op == OP_HGET) {
+ parse_skshash(search, &hash);
+ result = dbctx->fetch_key_skshash(dbctx,
+ &hash, &publickey);
+ } else if (ishex) {
+ result = dbctx->fetch_key_id(dbctx, keyid,
+ &publickey, false);
+ } else if (isfp) {
+ result = dbctx->fetch_key_fp(dbctx,
+ &fingerprint, &publickey, false);
+ } else {
+ result = dbctx->fetch_key_text(dbctx,
+ search,
+ &publickey);
+ }
+ if (result) {
+ logthing(LOGTHING_NOTICE,
+ "Found %d key(s) for search %s",
+ result,
+ search);