We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb265da commit eb646dfCopy full SHA for eb646df
pkix/src/main/java/org/bouncycastle/cms/CMSSignedDataStreamGenerator.java
@@ -372,13 +372,13 @@ else if (tagged.getTagNo() == 3)
372
return new ASN1Integer(1);
373
}
374
375
- private boolean checkForVersion3(List signerInfos, List signerInfoGens)
+ private static boolean checkForVersion3(List signerInfos, List signerInfoGens)
376
{
377
for (Iterator it = signerInfos.iterator(); it.hasNext();)
378
379
- SignerInfo s = SignerInfo.getInstance(((SignerInformation)it.next()).toASN1Structure());
+ SignerInfo s = ((SignerInformation)it.next()).toASN1Structure();
380
381
- if (s.getVersion().intValueExact() == 3)
+ if (s.getVersion().hasValue(3))
382
383
return true;
384
0 commit comments