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

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

No files matched your search

@@ -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;
}
}
@@ -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 {