Lines Matching defs:keyjson
481 const pgp_key_t *key, mj_t *keyjson, const char *header,
496 (void) memset(keyjson, 0x0, sizeof(*keyjson));
497 mj_create(keyjson, "object");
498 mj_append_field(keyjson, "header", "string", header, -1);
499 mj_append_field(keyjson, "key bits", "integer", (int64_t) numkeybits(pubkey));
500 mj_append_field(keyjson, "pka", "string", pgp_show_pka(pubkey->alg), -1);
501 mj_append_field(keyjson, "key id", "string", strhexdump(keyid, key->sigid, PGP_KEY_ID_SIZE, ""), -1);
502 mj_append_field(keyjson, "fingerprint", "string",
504 mj_append_field(keyjson, "birthtime", "integer", pubkey->birthtime);
505 mj_append_field(keyjson, "duration", "integer", pubkey->duration);
515 mj_append_field(keyjson, "uid", "array", &sub_obj);
539 mj_append_field(keyjson, "encryption", "array", &sub_obj);
550 mj_append_field(keyjson, "sig", "array", &sub_obj);
558 mj_asprint(&buf, keyjson, 1);