mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-19 20:31:52 -05:00
Fix test
This commit is contained in:
parent
2f5c73746d
commit
afd6851e5b
@ -177,8 +177,7 @@ public class UncachedKeyRing {
|
|||||||
((PGPSecretKeyRing) mRing).getSecretKeys())) {
|
((PGPSecretKeyRing) mRing).getSecretKeys())) {
|
||||||
S2K s2k = sub.getS2K();
|
S2K s2k = sub.getS2K();
|
||||||
// add key, except if the private key has been stripped (GNU extension)
|
// add key, except if the private key has been stripped (GNU extension)
|
||||||
if(s2k == null || (s2k.getType() == S2K.GNU_DUMMY_S2K
|
if(s2k == null || (s2k.getProtectionMode() != S2K.GNU_PROTECTION_MODE_NO_PRIVATE_KEY)) {
|
||||||
&& s2k.getProtectionMode() != S2K.GNU_PROTECTION_MODE_NO_PRIVATE_KEY)) {
|
|
||||||
result.add(sub.getKeyID());
|
result.add(sub.getKeyID());
|
||||||
} else {
|
} else {
|
||||||
Log.d(Constants.TAG, "S2K GNU extension!, mode: " + s2k.getProtectionMode());
|
Log.d(Constants.TAG, "S2K GNU extension!, mode: " + s2k.getProtectionMode());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user