lib: remove xhp argument from xbps_pubkey2fp
This commit is contained in:
@@ -63,7 +63,7 @@ fp2str(unsigned const char *fp, unsigned int len)
|
||||
}
|
||||
|
||||
char *
|
||||
xbps_pubkey2fp(struct xbps_handle *xhp, xbps_data_t pubkey)
|
||||
xbps_pubkey2fp(xbps_data_t pubkey)
|
||||
{
|
||||
EVP_MD_CTX *mdctx = NULL;
|
||||
EVP_PKEY *pPubKey = NULL;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -87,8 +87,7 @@ xbps_verify_signature(struct xbps_repo *repo, const char *sigfile,
|
||||
xbps_dbg_printf("%s: unsigned repository\n", repo->uri);
|
||||
return false;
|
||||
}
|
||||
hexfp = xbps_pubkey2fp(repo->xhp,
|
||||
xbps_dictionary_get(repo->idxmeta, "public-key"));
|
||||
hexfp = xbps_pubkey2fp(xbps_dictionary_get(repo->idxmeta, "public-key"));
|
||||
if (hexfp == NULL) {
|
||||
xbps_dbg_printf("%s: incomplete signed repo, missing hexfp obj\n", repo->uri);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user