non primary keys can never certify
This commit is contained in:
1 parent
e73596f7b9
commit
976708c332
1 file changed
+4
+4
@@ -90,6 +90,10 @@ public class CanonicalizedPublicKey extends UncachedPublicKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canCertify() {
|
public boolean canCertify() {
|
||||||
|
if (!isMasterKey()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// if key flags subpacket is available, honor it!
|
// if key flags subpacket is available, honor it!
|
||||||
if (getKeyUsage() != 0) {
|
if (getKeyUsage() != 0) {
|
||||||
return (getKeyUsage() & KeyFlags.CERTIFY_OTHER) != 0;
|
return (getKeyUsage() & KeyFlags.CERTIFY_OTHER) != 0;
|
||||||
|
|||||||
Reference in new issue
Block a user