From f2575b6313aeb23d867682856f7842704786349e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 15 May 2024 10:39:26 +0200 Subject: json: Add information about revocation keys to key list result * src/gpgme-json.c (revocation_key_to_json): New. (key_to_json): Add list of revocation keys. * tests/json/Makefile.am (pubring-stamp): Import new pub key. * tests/json/key-with-revokers.asc: New. * tests/json/t-json.c (tests): Add "t-keylist-revokers". * tests/json/t-keylist-revokers.in.json, tests/json/t-keylist-revokers.in.json: New. -- GnuPG-bug-id: 7118 --- tests/json/t-keylist-revokers.out.json | 97 ++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 tests/json/t-keylist-revokers.out.json (limited to 'tests/json/t-keylist-revokers.out.json') diff --git a/tests/json/t-keylist-revokers.out.json b/tests/json/t-keylist-revokers.out.json new file mode 100644 index 00000000..be8f633b --- /dev/null +++ b/tests/json/t-keylist-revokers.out.json @@ -0,0 +1,97 @@ +{ + "keys": [ + { + "revoked": false, + "expired": false, + "disabled": false, + "invalid": false, + "can_encrypt": true, + "can_sign": true, + "can_certify": true, + "can_authenticate": false, + "secret": false, + "is_qualified": false, + "protocol": "OpenPGP", + "fingerprint": "C95C864B775F71D02F52CEF6BD07B828B2F75071", + "owner_trust": "unknown", + "origin": 0, + "last_update": 0, + "subkeys": [ + { + "revoked": false, + "expired": false, + "disabled": false, + "invalid": false, + "can_encrypt": false, + "can_sign": true, + "can_certify": true, + "can_authenticate": false, + "secret": false, + "is_qualified": false, + "is_cardkey": false, + "is_de_vs": false, + "pubkey_algo_name": "EdDSA", + "pubkey_algo_string": "ed25519", + "keyid": "BD07B828B2F75071", + "curve": "ed25519", + "pubkey_algo": 303, + "length": 255, + "timestamp": 1715782979, + "expires": 1810390979 + }, + { + "revoked": false, + "expired": false, + "disabled": false, + "invalid": false, + "can_encrypt": true, + "can_sign": false, + "can_certify": false, + "can_authenticate": false, + "secret": false, + "is_qualified": false, + "is_cardkey": false, + "is_de_vs": false, + "pubkey_algo_name": "ECDH", + "pubkey_algo_string": "cv25519", + "keyid": "94C2E4C722CADAF9", + "curve": "cv25519", + "pubkey_algo": 302, + "length": 255, + "timestamp": 1715782979, + "expires": 0 + } + ], + "userids": [ + { + "revoked": false, + "invalid": false, + "validity": "unknown", + "uid": "key-with-revokers@example.net", + "name": "", + "email": "key-with-revokers@example.net", + "comment": "", + "address": "key-with-revokers@example.net", + "origin": 0, + "last_update": 0 + } + ], + "revocation_keys": [ + { + "sensitive": true, + "fingerprint": "A0FF4590BB6122EDEF6E3C542D727CC768697734", + "pubkey_algo_name": "DSA", + "pubkey_algo": 17, + "key_class": 192 + }, + { + "sensitive": false, + "fingerprint": "23FD347A419429BACCD5E72D6BC4778054ACD246", + "pubkey_algo_name": "DSA", + "pubkey_algo": 17, + "key_class": 128 + } + ] + } + ] +} -- cgit v1.2.3