index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Florian Pritz <bluewind@xinu.at> | 2011-10-20 20:39:28 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-20 21:40:19 -0600 |
commit | 2141b7112d237221280781bed2b2bb6efadc963e (patch) | |
tree | 47e086e4e4ed877efecd10f5796b1a6672712682 /lib/libalpm/signing.c | |
parent | 2f96067fe71e796e9da378620ad16a9f94a7b8ac (diff) |
-rw-r--r-- | lib/libalpm/signing.c | 20 |
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index dbdd350b..0bef4451 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -272,6 +272,26 @@ static int key_search(alpm_handle_t *handle, const char *fpr, pgpkey->expires = key->subkeys->expires; pgpkey->length = key->subkeys->length; pgpkey->revoked = key->subkeys->revoked; + + switch (key->subkeys->pubkey_algo) { + case GPGME_PK_RSA: + case GPGME_PK_RSA_E: + case GPGME_PK_RSA_S: + pgpkey->pubkey_algo = 'R'; + break; + + case GPGME_PK_DSA: + pgpkey->pubkey_algo = 'D'; + break; + + case GPGME_PK_ELG_E: + case GPGME_PK_ELG: + case GPGME_PK_ECDSA: + case GPGME_PK_ECDH: + pgpkey->pubkey_algo = 'E'; + break; + } + ret = 1; error: |