add test case for duplicate keys in keyring (#870)

This commit is contained in:
Vincent Breitmoser
2014-09-23 01:32:36 +02:00
parent 862c9a8b3c
commit 3759d74ac8
3 changed files with 75 additions and 4 deletions

View File

@@ -329,9 +329,9 @@ public class CanonicalizedSecretKey extends CanonicalizedPublicKey {
return new UncachedSecretKey(mSecretKey);
}
// HACK
public PGPSecretKey getSecretKey() {
return mSecretKey;
// HACK, for TESTING ONLY!!
PGPPrivateKey getPrivateKey () {
return mPrivateKey;
}
}

View File

@@ -1118,7 +1118,7 @@ public class PgpKeyOperation {
pKey, flags, expiry);
}
private static PGPSignature generateSubkeyBindingSignature(
static PGPSignature generateSubkeyBindingSignature(
PGPPublicKey masterPublicKey, PGPPrivateKey masterPrivateKey,
PGPPrivateKey subPrivateKey, PGPPublicKey pKey, int flags, long expiry)
throws IOException, PGPException, SignatureException {