diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-18 22:46:50 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-21 04:39:33 +0100 |
commit | 2f96067fe71e796e9da378620ad16a9f94a7b8ac (patch) | |
tree | cc225cb67bdacc171164c543ae01b520e7a14c58 /lib/libalpm | |
parent | 5ba8b83b8be55b9d7a55cc8bfdef80c37117101d (diff) | |
download | pacman-2f96067fe71e796e9da378620ad16a9f94a7b8ac.tar.gz pacman-2f96067fe71e796e9da378620ad16a9f94a7b8ac.tar.xz |
change gpg import message to resemble gpg --list-keys
Dan: const pointers, don't worry about bitfields.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/alpm.h | 2 | ||||
-rw-r--r-- | lib/libalpm/signing.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 9b2d8a92..f25d4c44 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -226,6 +226,8 @@ typedef struct _alpm_pgpkey_t { char *email; alpm_time_t created; alpm_time_t expires; + unsigned int length; + unsigned int revoked; } alpm_pgpkey_t; /** Signature result. Contains the key, status, and validity of a given diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index 92f34b56..dbdd350b 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -270,6 +270,8 @@ static int key_search(alpm_handle_t *handle, const char *fpr, pgpkey->email = key->uids->email; pgpkey->created = key->subkeys->timestamp; pgpkey->expires = key->subkeys->expires; + pgpkey->length = key->subkeys->length; + pgpkey->revoked = key->subkeys->revoked; ret = 1; error: |