lib: remove xhp argument from xbps_pubkey2fp

This commit is contained in:
Duncan Overbruck
2022-12-24 14:07:10 +01:00
parent 9efba6749f
commit d962eaaf3c
5 changed files with 9 additions and 7 deletions

View File

@@ -655,7 +655,11 @@ xbps_repo_key_import(struct xbps_repo *repo)
rv = EINVAL;
goto out;
}
hexfp = xbps_pubkey2fp(repo->xhp, pubkey);
hexfp = xbps_pubkey2fp(pubkey);
if (hexfp == NULL) {
rv = EINVAL;
goto out;
}
/*
* Check if the public key is alredy stored.
*/