Commit Graph

6 Commits (master)

Author SHA1 Message Date
Chris Conlon e013b63b20 JNI: add String and X500Principal constructors to WolfSSLX509Name 2026-05-06 16:27:37 -06:00
Chris Conlon b51439c7b4 JNI/JSSE: Add SpotBugs exclusions for reviewed warnings 2026-03-18 15:57:41 -06:00
Chris Conlon fc867c33d0 JNI/JSSE: Fix threading issues found by SpotBugs
- Fix inconsistent synchronization in WolfSSLParameters for
  getCipherSuites/setCipherSuites and
  getApplicationProtocols/setApplicationProtocols
- Add volatile to WolfSSLImplementSSLSession.isInTable and
  alpnSelector fields
- Use class lock for static fields in
  detectSecurityPropertySettings()
- Add synchronized to WolfSSLEngine.getEnabledCipherSuites()
2026-03-18 15:57:41 -06:00
Chris Conlon bd8606dcb5 JNI/JSSE: Fix visibility and access modifiers found by SpotBugs
- Add missing final to WOLFSSL_LEFT_MOST_WILDCARD_ONLY constant
- Update generated JNI header for WOLFSSL_LEFT_MOST_WILDCARD_ONLY
- Make WolfSSLProvider.setDevId() static
- Reduce visibility of WolfSSLCustomUser fields to package-protected
- Make WolfSSLEngine debug flags private
- Rename internal PascalCase methods to camelCase
  (LoadKeyAndCertChain, GetJavaHome, LoadKeyStoreFileByType,
  GetCtxAttributes)
2026-03-18 15:57:41 -06:00
Chris Conlon dbcdcf3bbc JNI/JSSE: Fix bugs found by SpotBugs
- Fix null dereference in setServerID() before id.length access
- Fix Arrays.asList() on primitive int[] in setGroups() debug log
- Use StandardCharsets.UTF_8 instead of default encoding in getBytes()
- Remove redundant null checks (Thread.getName(), new File(),
  Class.getMethod(), cast after instanceof)
- Fix null dereference of cafiles in LoadAndroidSystemCertsManually()
- Add Javadoc to cacheRequestedServerNamesFromNetData()
2026-03-18 15:57:41 -06:00
Chris Conlon 20b10ce17e Testing: add 'ant spotbugs' target and SpotBugs exclusion filter 2026-03-18 15:57:41 -06:00