Disable getEmbeddedSignatures() until patch by Ashh87 has been applied again in our spongy castle fork

This commit is contained in:
Dominik Schürmann 2014-01-27 13:34:28 +01:00
parent 7183c4ab06
commit 8ca42b9bf9

View File

@ -973,16 +973,16 @@ public class PgpOperation {
boolean primkeyBinding_isok = false; boolean primkeyBinding_isok = false;
JcaPGPContentVerifierBuilderProvider contentVerifierBuilderProvider = new JcaPGPContentVerifierBuilderProvider() JcaPGPContentVerifierBuilderProvider contentVerifierBuilderProvider = new JcaPGPContentVerifierBuilderProvider()
.setProvider(Constants.BOUNCY_CASTLE_PROVIDER_NAME); .setProvider(Constants.BOUNCY_CASTLE_PROVIDER_NAME);
PGPSignatureList eSigList; PGPSignatureList eSigList = null;
if (Pkts.hasSubpacket(SignatureSubpacketTags.EMBEDDED_SIGNATURE)) { if (Pkts.hasSubpacket(SignatureSubpacketTags.EMBEDDED_SIGNATURE)) {
try { // try {
eSigList = Pkts.getEmbeddedSignatures(); // eSigList = Pkts.getEmbeddedSignatures();
} catch (IOException e) { // } catch (IOException e) {
return false; // return false;
} catch (PGPException e) { // } catch (PGPException e) {
return false; // return false;
} // }
for (int j = 0; j < eSigList.size(); ++j) { for (int j = 0; j < eSigList.size(); ++j) {
PGPSignature emSig = eSigList.get(j); PGPSignature emSig = eSigList.get(j);
if (emSig.getSignatureType() == PGPSignature.PRIMARYKEY_BINDING) { if (emSig.getSignatureType() == PGPSignature.PRIMARYKEY_BINDING) {