Skip to content

Commit eb53066

Browse files
committed
minor tweak to test to ensure parsing takes place.
1 parent dc18337 commit eb53066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkix/src/test/java/org/bouncycastle/cms/test/NewAuthenticatedDataTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public void testCMSAlgorithmProtection()
302302
checkData(data, kek, ad);
303303

304304
ContentInfo adInfo = ad.toASN1Structure();
305-
AuthenticatedData iAd = AuthenticatedData.getInstance(adInfo.getContent());
305+
AuthenticatedData iAd = AuthenticatedData.getInstance(adInfo.getContent().toASN1Primitive().getEncoded());
306306

307307
try
308308
{

0 commit comments

Comments
 (0)