libxbps: stop and error out if pkg signature is not valid.
This commit is contained in:
parent
b22d557287
commit
da74e3dd9e
3
NEWS
3
NEWS
@ -1,5 +1,8 @@
|
||||
xbps-0.45 (???):
|
||||
|
||||
* libxbps: if a pkg signature file cannot be verified, don't continue processing
|
||||
other files, stop and return error immediately.
|
||||
|
||||
* xbps-remove(8): fixed regression while removing recursively packages, don't remove
|
||||
all package orphans, this task belongs to -o not -R.
|
||||
|
||||
|
@ -95,10 +95,9 @@ check_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter)
|
||||
"%s: verifying RSA signature...", pkgver);
|
||||
|
||||
if (!xbps_verify_file_signature(repo, binfile)) {
|
||||
rv = errno;
|
||||
rv = EPERM;
|
||||
xbps_set_cb_state(xhp, XBPS_STATE_VERIFY_FAIL, rv, pkgver,
|
||||
"%s: the RSA signature is not valid: %s", pkgver,
|
||||
strerror(rv));
|
||||
"%s: the RSA signature is not valid!", pkgver);
|
||||
free(binfile);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user