Skip to content

Commit e013b63

Browse files
committed
JNI: add String and X500Principal constructors to WolfSSLX509Name
1 parent 1bea4be commit e013b63

4 files changed

Lines changed: 1698 additions & 0 deletions

File tree

spotbugs-exclude.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,38 @@
269269
<Field name="x509NamePtr"/>
270270
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
271271
</Match>
272+
<Match>
273+
<Class name="com.wolfssl.WolfSSLX509Name"/>
274+
<Field name="active"/>
275+
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
276+
</Match>
277+
<!--
278+
IS2_INCONSISTENT_SYNC: WolfSSLX509Name cached mirror fields.
279+
Written by updateMirrorField() during DN-based construction
280+
(before the object is published) and from synchronized
281+
setXxx() methods after construction. Reads via synchronized
282+
getXxx() methods. Safe under JMM publication semantics.
283+
-->
284+
<Match>
285+
<Class name="com.wolfssl.WolfSSLX509Name"/>
286+
<Or>
287+
<Field name="countryName"/>
288+
<Field name="stateOrProvinceName"/>
289+
<Field name="streetAddress"/>
290+
<Field name="localityName"/>
291+
<Field name="surname"/>
292+
<Field name="commonName"/>
293+
<Field name="emailAddress"/>
294+
<Field name="organizationName"/>
295+
<Field name="organizationalUnitName"/>
296+
<Field name="postalCode"/>
297+
<Field name="userId"/>
298+
<Field name="title"/>
299+
<Field name="domainComponent"/>
300+
<Field name="serialNumber"/>
301+
</Or>
302+
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
303+
</Match>
272304

273305
<!--
274306
IS2_INCONSISTENT_SYNC: WolfSSLSession callback context

0 commit comments

Comments
 (0)