X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Frepo_pubkey.c;h=eb838394854714c70987fc16cfa1b905c23f6fcc;hb=97330b5a608c2213fdf3f49bfbaa268bf9627920;hp=f389283dba02dfcdeaadb4bb33cf142ea2603f01;hpb=a1bfbfbef09f72faa4a66a9d4ee07ed22942c3a2;p=platform%2Fupstream%2Flibsolv.git diff --git a/ext/repo_pubkey.c b/ext/repo_pubkey.c index f389283..eb83839 100644 --- a/ext/repo_pubkey.c +++ b/ext/repo_pubkey.c @@ -14,8 +14,6 @@ #include #include -#include -#include #include #include #include @@ -257,6 +255,12 @@ pgphashalgo2type(int algo) return REPOKEY_TYPE_SHA1; if (algo == 8) return REPOKEY_TYPE_SHA256; + if (algo == 9) + return REPOKEY_TYPE_SHA384; + if (algo == 10) + return REPOKEY_TYPE_SHA512; + if (algo == 11) + return REPOKEY_TYPE_SHA224; return 0; } @@ -1195,7 +1199,7 @@ repo_find_pubkey(Repo *repo, const char *keyid) #ifdef ENABLE_PGPVRFY -/* warning: does not check key expiry/revokation, like gpgv or rpm */ +/* warning: does not check key expiry/revokation, same as with gpgv or rpm */ /* returns the Id of the pubkey that verified the signature */ Id repo_verify_sigdata(Repo *repo, unsigned char *sigdata, int sigdatal, const char *keyid)