Commit Graph

1058 Commits (5e56b00383330478f3675f60d3d666319d4fa7f5)

Author SHA1 Message Date
JacobBarthelmeh 5e56b00383
Merge pull request #251 from cconlon/1.15release
Prep for 1.15 Release
2025-01-24 14:07:31 -08:00
Chris Conlon cc6d150bca Update ChangeLog for 1.15 release 2025-01-24 14:46:52 -07:00
Chris Conlon ff26562bdb Android: update example app CMakeLists.txt for wolfSSL FIPS Ready compatibility 2025-01-24 12:13:17 -07:00
Chris Conlon 4b00da2c7b JNI: fix Facebook Infer script exit code, and reported thread safety violations / potential deadlock issues 2025-01-23 16:15:58 -07:00
Chris Conlon d5c181e0c2 JNI/JSSE: bump version to 1.15 2025-01-23 14:52:44 -07:00
JacobBarthelmeh d56fa67109
Merge pull request #246 from cconlon/socketCloseInterruptsWriteRead
JSSE: calling SSLSocket.close() should interrupt threads blocked in select()/poll()
2025-01-21 15:29:17 -08:00
Chris Conlon cd8c49eae9 JNI/JSSE: remove incorrect preprocessor gate around native wolfSSL_GetSide() 2025-01-21 10:20:17 -07:00
Chris Conlon 336af4daf9 JNI/JSSE: fix VS warning about uninitialized local pointer variable 2025-01-21 10:20:17 -07:00
Chris Conlon 94281c3150 JSSE: add CountDownLatch to WolfSSLSocketTest TestServer/Client to wait until threads are finished before checking for Exceptions 2025-01-21 10:20:17 -07:00
Chris Conlon dc5e43c70d JNI/JSSE: Add java.sh usage to README.md 2025-01-21 10:20:17 -07:00
Chris Conlon 3828f97161 GitHub Actions: add test for java.sh defining WOLFJNI_USE_IO_SELECT (non default) 2025-01-21 10:20:17 -07:00
Chris Conlon 4310544089 JNI/JSSE: pass CFLAGS to java.sh gcc commands 2025-01-21 10:20:17 -07:00
Chris Conlon 85dc1542e1 JSSE: calling SSLSocket.close() should interrupt threads blocked in select()/poll() 2025-01-21 10:20:14 -07:00
JacobBarthelmeh f5c9289097
Merge pull request #248 from cconlon/copyright2025
JNI/JSSE: update copyright to 2025
2025-01-20 14:42:47 -08:00
Chris Conlon e600b0f056
Merge pull request #250 from gasbytes/SSLEngine-patch
fix: handle DirectByteBuffers in WolfSSLSession.read()
2025-01-10 11:50:30 -07:00
Reda Chouk 5de02dc3fe fix: handle DirectByteBuffers in WolfSSLSession.read()
Fix of improper handling of DirectByteBuffers in the JNI layer.
Previously, the native read() method would throw an exception when
encountering a DirectByteBuffer, breaking the optimization path for
single-buffer reads in WolfSSLEngine.

This change modifies the JNI implementation to properly handle both
array-backed and direct ByteBuffers, maintaining the performance benefits
of both buffer types while fixing the test failure.

- Added support for DirectByteBuffers using GetDirectBufferAddress
- Preserved existing optimization path for array-backed buffers
- Maintained proper position updates and error handling for both types
- Fixed SSLEngine/Arrays test without compromising performance
2025-01-10 19:02:57 +01:00
JacobBarthelmeh 63052defb4
Merge pull request #244 from cconlon/sslEngineOptimization
JNI/JSSE: optimize out array creation in WolfSSLEngine RecvAppData()
2025-01-06 16:58:08 -07:00
Chris Conlon 12eae28c14 JNI/JSSE: optimize out array creation in WolfSSLEngine RecvAppData(), pass ByteBuffer down to JNI directly 2025-01-06 16:22:28 -07:00
Chris Conlon eb4ee89bd0 JNI/JSSE: update copyright to 2025 2025-01-06 15:48:38 -07:00
JacobBarthelmeh 925bf80281
Merge pull request #247 from cconlon/fipsRunAllCasts
JNI/JSSE: call wc_RunAllCast_fips() for FIPS builds when available
2025-01-06 15:34:46 -07:00
Chris Conlon 501150e170 JNI/JSSE: call wc_RunAllCast_fips() for FIPS builds when available, add conditional defines for per-algo CAST functions 2025-01-06 15:14:39 -07:00
Chris Conlon e138599124
Merge pull request #243 from gasbytes/LegacyDHEKeyExchange-patch
Added check for legacy DHE keys (for cipher suites using keys less than 1024 bits)
2024-12-23 16:16:43 -07:00
Reda Chouk 967f75e84b Proper styling for comments to match code standards (WolfSSLEngineHelper.java) and fixed identation (WolfSSLSocket.java) 2024-12-23 23:52:23 +01:00
Reda Chouk 20befbc368 Added check for legacy DHE keys (for cipher suites using keys less than 1024 bits) 2024-12-23 23:23:44 +01:00
Chris Conlon 9db7ff1f49
Merge pull request #242 from rlm2002/sniServerNames
getSNIRequest checks for null value before converting to String
2024-12-16 09:27:18 -07:00
Ruby Martin 5c6d7eb7c0 getSNIRequest checks for null value before converting to String 2024-12-12 16:34:30 -07:00
Chris Conlon 8ae65d442f
Merge pull request #241 from rlm2002/sniServerNames
Add getSNIRequestBytes() and modify return value of getSNIRequest()
2024-12-12 12:30:09 -07:00
Ruby Martin 8647c693d8 Add method getSNIRequestBytes() to return byte array, modify getSNIRequest to return String value of byte array 2024-12-12 10:48:22 -07:00
Chris Conlon 21beea33bb
Merge pull request #240 from rlm2002/sniServerNames
Return cached SNI request from Server side
2024-12-10 14:08:54 -07:00
Ruby Martin 6abb250d6f JSSE: return cached SNI request on Server side 2024-12-10 10:41:25 -07:00
JacobBarthelmeh d39d06cf94
Merge pull request #239 from cconlon/androidCustomConfig
Android: define WOLFSSL_CUSTOM_CONFIG in example Android app
2024-12-10 10:25:31 -07:00
Chris Conlon 8643c9b02c Android: define WOLFSSL_CUSTOM_CONFIG in example Android app, after wolfSSL PR 8262 2024-12-10 09:36:58 -07:00
JacobBarthelmeh 06feb77415
Merge pull request #236 from cconlon/get1Session
Always call wolfSSL_get1_session() inside native JNI WolfSSLSession.getSession()
2024-12-06 10:17:07 -07:00
Chris Conlon 4dbbef94b9 JNI: always call wolfSSL_get1_session() inside native JNI getSession(), callers expect to always free returned pointer 2024-12-06 09:41:33 -07:00
JacobBarthelmeh 87b6c6a65f
Merge pull request #233 from cconlon/ioStreamNullFix
JSSE: adjust variable resets in Input/OutputStream.close(), more SSLSession tests and fixes
2024-12-05 17:26:16 -07:00
Chris Conlon f164e6465d JSSE: add SSLSocket.getSession() tests throughout different times of connection establishment 2024-12-05 17:13:05 -07:00
Chris Conlon ed3db7a92c JSSE: correct reset of closing state in WolfSSLInputStream/OutputStream 2024-11-25 10:08:11 -07:00
Chris Conlon 36f54b02e8 JSSE: fixes for calling SSLSocket methods after SSLSocket.close() has been called 2024-11-25 10:08:08 -07:00
Chris Conlon 11f6f4b5cd JSSE: skip setting socket to null in Input/OutputStream.close(), so read/write() can detect closure 2024-11-22 14:22:57 -07:00
Chris Conlon 32ac8ac11c JSSE: skip setting ssl to null in Input/OutputStream.close() in case other thread is blocked in ssl.read/write() on select/poll() 2024-11-22 14:22:57 -07:00
JacobBarthelmeh 6e69cb2241
Merge pull request #235 from cconlon/jniDebug
Add JNI Java level debugging with System Property: wolfssljni.debug=true
2024-11-22 09:27:23 -07:00
Chris Conlon 2fa04177fc JNI: add wolfSSL JNI Java level debugging, add wolfssljni.debug=true System property support 2024-11-21 15:33:14 -07:00
JacobBarthelmeh fd51ab9a19
Merge pull request #234 from cconlon/socketConnect
SSLSocket: remove unnecessary connect() override, log and close socket on doHandshake SSLException
2024-11-20 17:30:21 -07:00
Chris Conlon c6fbb8e97b Android: update sample CMakeLists.txt with -DWOLFSSL_CERT_REQ, needed for wolfSSL_X509_REQ_set_version() 2024-11-18 16:27:57 -07:00
Chris Conlon 59c30d34a7 JSSE: add debug and close Socket if doHandshake() throws SSLException in startHandshake() 2024-11-18 16:09:14 -07:00
Chris Conlon f718187424 JSSE: remove SSLSocket.connect(SocketAddress endpoint), not needed since super equivalent calls connect(SocketAddress endpoint, int port) 2024-11-18 16:01:07 -07:00
JacobBarthelmeh 99bd194692
Merge pull request #232 from cconlon/mavenAction
Add GitHub Action PRB to test Maven builds (pom.xml)
2024-11-11 16:15:34 -07:00
Chris Conlon 3f96219d8e Add GitHub Action PRB to test Maven builds (pom.xml) 2024-11-11 15:40:51 -07:00
JacobBarthelmeh 5e430a11b1
Merge pull request #231 from cconlon/v1.14release
Prep for 1.14 Release
2024-11-07 10:04:55 -07:00
Chris Conlon 13e73db1dd Update ChangeLog for 1.14 release 2024-11-06 17:25:21 -07:00