Commit Graph

1123 Commits (d53d9d840c9f848127103b7951b566a25128d7f1)

Author SHA1 Message Date
Chris Conlon d53d9d840c
Merge pull request #270 from rlm2002/JSSEprotocols
always disable DTLSv1 and DTLSv1.2
2025-05-30 16:41:55 -06:00
Ruby Martin dd29707c55 always disable DTLSv1 and DTLSv1.2 2025-05-30 14:07:58 -06:00
JacobBarthelmeh 1587e6b865
Merge pull request #268 from cconlon/sslSessionBufferPool
Use static pool of direct ByteBuffers for WolfSSLSession read/write()
2025-05-29 15:14:16 -06:00
Chris Conlon 0c4b3190c7 JNI: add support for Java Security properties:
- wolfssl.readWriteByteBufferPool.disabled
- wolfssl.readWriteByteBufferPool.size
- wolfssl.readWriteByteBufferPool.bufferSize
2025-05-21 14:01:49 -06:00
Chris Conlon 8b939f46ef
Merge pull request #269 from rlm2002/JSSEprotocols
change wolfSSL logging cb to stderr
2025-05-21 13:44:45 -06:00
Ruby Martin d8458bce6b change wolfSSL logging cb to stderr 2025-05-21 12:00:42 -06:00
Chris Conlon 1c8963e4fe JNI: initial implementation of static direct ByteBuffer pool for WolfSSLSession.write(), avoids unaligned memory access at JNI layer 2025-05-16 15:25:14 -06:00
Chris Conlon 6b1e7a6299 JNI: initial implementation of static direct ByteBuffer pool for WolfSSLSession.read(), avoids unaligned memory access at JNI layer 2025-05-15 10:26:08 -06:00
JacobBarthelmeh a306dfff0e
Merge pull request #267 from cconlon/aarch64
Use `-fPIC` on Aarch64, add GitHub Actions ARM with armasm test
2025-05-14 16:57:24 -06:00
Chris Conlon 985edddf91
Merge pull request #259 from rlm2002/implementSniMatchers
implement SNI matcher logic
2025-05-14 16:24:23 -06:00
Ruby Martin 62bdb9e609 add SNI matcher test 2025-05-14 16:11:23 -06:00
Ruby Martin 74bf974354 JSSE: implement SNIMatcher logic for wolfSSLSockets
add thread safety
2025-05-14 16:11:23 -06:00
Chris Conlon 5069e46759 Make CLAUDE.md instructions more strict around trailing whitespace 2025-05-13 16:46:51 -06:00
Chris Conlon 12f7654b5c Testing: adjust WolfSSLEngineTest to properly close sockets and close ExecutorService 2025-05-13 16:46:30 -06:00
Chris Conlon ca24a84dca Testing: add GitHub Actions test with Ubuntu ARM runner and --enable-armasm 2025-05-13 16:16:30 -06:00
Chris Conlon 78488527dd JNI/JSSE: add -fPIC to CFLAGS in java.sh for Aarch64 2025-05-13 16:12:42 -06:00
JacobBarthelmeh 26b542cf8c
Merge pull request #264 from cconlon/dtls13Examples
JSSE examples: add DTLS 1.3 example client and server
2025-05-13 09:35:37 -06:00
JacobBarthelmeh f4da9f3b25
Merge pull request #265 from cconlon/claude
Add CLAUDE.md for consumption by Claude Code
2025-05-12 16:26:36 -06:00
JacobBarthelmeh 35083fad34
Merge pull request #266 from cconlon/cursorFixes
Clean up Cursor/VSCode IDE warnings
2025-05-12 16:16:20 -06:00
Chris Conlon 48c970a2ea Fix Cursor/VSCode IDE warnings 2025-05-12 10:53:33 -06:00
Chris Conlon 4a42a122f5 JSSE examples: add DTLS 1.3 example client and server 2025-05-09 16:59:23 -06:00
Chris Conlon 525b6b26c9 Add CLAUDE.md for consumption by Claude Code 2025-05-09 16:58:29 -06:00
JacobBarthelmeh 9e35d6ba84
Merge pull request #263 from cconlon/oidFix
Get ASN algorithm enum values dynamically in `WolfSSL.java`
2025-05-09 16:55:24 -06:00
Chris Conlon 2c7f12627c JNI: get ASN algo enum values dynamically, more flexible if native enum values change 2025-05-08 17:02:34 -06:00
JacobBarthelmeh bd6154c046
Merge pull request #262 from cconlon/jniOptimizations
JNI Optimizations WolfSSLSession.read(ByteBuffer)
2025-05-05 09:29:58 -06:00
Chris Conlon 995ef5ea34 JNI: avoid call to ExceptionOccurred() in WolfSSLSession.read(ByteBuffer) unless GetByteArrayElements returns null, improves performance 2025-05-01 15:23:17 -06:00
Chris Conlon 3368a5eb47 JNI: optimize out CallIntMethod/CallBooleanMethod() calls from WolfSSLSession.read(ByteBuffer), improves performance 2025-05-01 15:04:25 -06:00
JacobBarthelmeh 6f880d8d85
Merge pull request #261 from cconlon/javaLogging
Switch to Java Logging (`java.util.logging`)
2025-05-01 12:47:49 -06:00
Chris Conlon e60387d4f6 JNI/JSSE: switch to Java Logging, use Lambda expressions to defer String creation 2025-04-30 15:41:18 -06:00
JacobBarthelmeh 30bffcc6da
Merge pull request #260 from cconlon/jniSessionTestCleanup
Add more checks to JNI WolfSSLSession.read(ByteBuffer)
2025-04-30 15:33:38 -06:00
Chris Conlon fc24d7f3b6 JNI test: add WANT_READ/WANT_WRITE loops inside WolfSSLSessionTest test_WolfSSLSession_ioBuffers() 2025-04-30 14:34:31 -06:00
Chris Conlon 342eb2f25a JNI: add additional error checks to JNI WolfSSLSession.read(ByteBuffer) function 2025-04-30 14:34:28 -06:00
JacobBarthelmeh 994950fffb
Merge pull request #258 from cconlon/nativeALPNSelectCbXSTRTOKFix
Null terminate `NativeALPNSelectCb()` peer protocol list before XSTRTOK
2025-04-29 15:33:20 -06:00
JacobBarthelmeh e858d7590d
Merge pull request #257 from cconlon/sslEngineFixups
SSLEngine Performance Optimizations
2025-04-29 15:31:54 -06:00
Chris Conlon d466ff16e4 JNI test: remove min ECC key size not divisible by 8 test, no longer fails with https://github.com/wolfSSL/wolfssl/pull/8691 2025-04-25 16:09:58 -06:00
Chris Conlon 34d3e873a6 JNI: NativeALPNSelectCb() fix to make sure peer proto array is null terminated before calling XSTRTOK() 2025-04-25 16:08:46 -06:00
Chris Conlon 6a243c4149 JNI test: add JUnit tests for WolfSSLSession I/O ByteBuffer callbacks 2025-04-22 09:56:51 -06:00
Chris Conlon 6853e02af8 JNI test: remove min ECC key size not divisible by 8 test, no longer fails with https://github.com/wolfSSL/wolfssl/pull/8691 2025-04-17 16:45:20 -06:00
Chris Conlon 8ebd050a5a JSSE: add ByteBuffer I/O callbacks for performance, plug them into WolfSSLEngine 2025-04-17 16:35:52 -06:00
Chris Conlon 3aa056c607 JSSE: new helper functions to throw exceptions (throwWolfSSLJNIException, throwWolfSSLException), avoids calling FindClass unnecessarily, improves performance 2025-04-17 16:34:00 -06:00
Chris Conlon 767a289113 JSSE: cache jmethodIDs used in native I/O callbacks globally, improves performance 2025-04-17 16:34:00 -06:00
Chris Conlon d95297f12c JSSE: refactor WolfSSLEngine to use static output array instead of allocating for each send 2025-04-17 16:34:00 -06:00
Chris Conlon e8826acc4b JSSE: use single direct ByteBuffer in SSLEngine.SendAppData() instead of allocating each time method is called 2025-04-17 16:33:57 -06:00
Chris Conlon 1a7534c726 JSSE: adjust SSLSession.getPacketBufferSize() for tls-channel compatibility, wrap native wolfSSL_GetMaxOutputSize() 2025-04-10 15:10:53 -06:00
Chris Conlon 95bedabeb2
Merge pull request #255 from gasbytes/ResumeTLS13withSNI-patch
Fix TLS 1.3 session resumption to preserve SNI extension
2025-03-12 10:23:19 -06:00
Reda Chouk fd143de8bb Fix TLS 1.3 session resumption to preserve SNI extension 2025-02-27 13:22:20 +01:00
JacobBarthelmeh ad23ac20e9
Merge pull request #254 from cconlon/dtls
Add support for DTLS 1.3 (`DTLSv1.3`) through `SSLContext` / `SSLEngine`
2025-02-26 16:40:05 -07:00
Chris Conlon 5d37d5c13d JSSE: fix SSLEngine client session storage, store when WolfSSLSession error state is not fatal 2025-02-17 15:40:18 -07:00
Chris Conlon 8449b6744e JNI/JSSE: wrap wolfSSL_set_SessionTicket_cb(), add session ticket callback to SSLEngine for detection of ticket received 2025-02-17 15:40:18 -07:00
Chris Conlon d245630133 JNI: skip throwing Java exceptions from NativeLoggingCallback 2025-02-17 15:40:18 -07:00