Skip to content

Commit

Permalink
Fix X500NameTest error message
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdettman committed Jan 2, 2024
1 parent 71fa413 commit 339c830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public void performTest()
name = fromBytes(name.getEncoded());
if (!name.toString().equals(hexSubjects[i + 1]))
{
fail("failed hex regeneration test " + i + " got: " + name.toString() + " expected " + subjects[i]);
fail("failed hex regeneration test " + i + " got: " + name.toString() + " expected " + hexSubjects[i + 1]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ public void performTest()
for (int i = 0; i != subjects.length; i++)
{
X509Name name = new X509Name(subjects[i]);
name = X509Name.getInstance(ASN1Primitive.fromByteArray(name.getEncoded()));
name = fromBytes(name.getEncoded());
if (!name.toString().equals(subjects[i]))
{
fail("failed regeneration test " + i + " got " + name.toString());
fail("failed regeneration test " + i + " got: " + name.toString() + " expected " + subjects[i]);
}
}

Expand Down

0 comments on commit 339c830

Please sign in to comment.