Skip to content

Commit c0d6922

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 51a969b + f0c66c1 commit c0d6922

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CONTRIBUTORS.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@
548548
<li>yuhh0328 &lt;https://github.com/yuhh0328&gt; - initial patch for adding ML-KEM support to TLS.</li>
549549
<li>Jan Oupick&yacute; &lt;https://github.com/Honzaik&gt; - update to draft 13 of composite PQC signatures.</li>
550550
<li>Karsten Otto &lt;https://github.com/ottoka&gt; - finished the support for jdk.tls.server.defaultDHEParameters.</li>
551+
<li>Markus Sommer &lt;https://github.com/marsom&gt; - BCStyle lookup table fix for jurisdiction values.</li>
551552
</ul>
552553
</body>
553554
</html>

core/src/main/java/org/bouncycastle/asn1/x500/style/BCStyle.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ public class BCStyle
291291
DefaultLookUp.put("telephonenumber", TELEPHONE_NUMBER);
292292
DefaultLookUp.put("name", NAME);
293293
DefaultLookUp.put("organizationidentifier", ORGANIZATION_IDENTIFIER);
294-
DefaultLookUp.put("jurisdictionCountry", JURISDICTION_C);
295-
DefaultLookUp.put("jurisdictionState", JURISDICTION_ST);
296-
DefaultLookUp.put("jurisdictionLocality", JURISDICTION_L);
294+
DefaultLookUp.put("jurisdictioncountry", JURISDICTION_C);
295+
DefaultLookUp.put("jurisdictionstate", JURISDICTION_ST);
296+
DefaultLookUp.put("jurisdictionlocality", JURISDICTION_L);
297297
}
298298

299299
/**

core/src/test/java/org/bouncycastle/asn1/test/X500NameTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,10 @@ public void performTest()
663663
{
664664
fail("padded equality test failed");
665665
}
666+
667+
isTrue(BCStyle.INSTANCE.attrNameToOID("jurisdictionCountry").equals(BCStyle.JURISDICTION_C));
668+
isTrue(BCStyle.INSTANCE.attrNameToOID("jurisdictionState").equals(BCStyle.JURISDICTION_ST));
669+
isTrue(BCStyle.INSTANCE.attrNameToOID("jurisdictionLocality").equals(BCStyle.JURISDICTION_L));
666670
}
667671

668672
private String getValue(RDN vl)

0 commit comments

Comments
 (0)