Commit Graph

98 Commits (36a1057366cbe2a8a716ff248f4e1c69855a2353)

Author SHA1 Message Date
Chris Conlon 36a1057366 JNI: add DTLS 1.3 to JNI-only layer 2025-02-17 10:53:17 -07:00
Chris Conlon 36bfbd1757 JNI: wrap Atomic Record VerifyDecrypt callback 2025-01-30 16:51:33 -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
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 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 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
Ruby Martin 5c6d7eb7c0 getSNIRequest checks for null value before converting to String 2024-12-12 16:34:30 -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 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
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
Chris Conlon 7231009800 JSSE: only resume sessions from Java client cache if same cipher suite and protocol are enabled 2024-08-06 14:31:52 -06:00
Chris Conlon 58c63ded96 JNI: wrap native wolfSSL_SESSION_dup() in WolfSSLSession.duplicateSession() 2024-07-12 15:04:38 -06:00
Chris Conlon 6e08b929dc JNI/JSSE: use poll() instead of select() as default descriptor event function 2024-06-27 16:34:39 -06:00
Chris Conlon 1afd3fcc30 JNI: wrap native wolfSSL_SESSION_is_resumable() in WolfSSLSession.sessionIsResumable() 2024-05-31 14:21:15 -06:00
Chris Conlon 907a3d45d0 JNI: wrap wolfSSL_SESSION_has_ticket() in WolfSSLSession.hasSessionTicket() 2024-05-16 16:11:01 -06:00
JacobBarthelmeh a2db7c3bcc
Merge pull request #191 from cconlon/sessionIsSetup
JNI: wrap wolfSSL_SessionIsSetup() in WolfSSLSession
2024-04-25 16:58:39 -06:00
Chris Conlon afeea367b9 JNI/JSSE: fix Infer thread safety violation warnings in WolfSSLSession and WolfSSLSocket 2024-04-25 14:15:39 -06:00
Chris Conlon 76ac7784de JNI: wrap wolfSSL_SessionIsSetup() in WolfSSLSession, needs wolfSSL > 5.7.0 or WOLFSSL_PR7430_PATCH_APPLIED defined 2024-04-22 17:14:16 -06:00
Chris Conlon a7c1830b0e JNI: set clientSNIRequested and ctx to null in freeSSL() to reduce object size in GC finalizer 2024-04-19 14:18:51 -06:00
Chris Conlon d33185cdaf JNI/JSSE: correctly free WOLFSSL_X509 from wolfSSL_get_peer_certificate() for wolfSSL >= 5.3.0 2024-04-17 15:59:50 -06:00
Chris Conlon afc0f68fa6 Infer fixes for com.wolfssl.WolfSSLSession 2024-04-05 10:57:24 -06:00
Chris Conlon 6521c21863 JNI/JSSE: remove extraneous array copy in WolfSSLInputStream/OutputStream when array offset is provided 2024-04-04 16:54:48 -06:00
Chris Conlon 3dee881dda JNI: wrap wolfSSL_set_tls13_secret_cb() in WolfSSLSession.setTls13SecretCb(), along with example in Client.java 2024-03-28 10:05:10 -06:00
Chris Conlon 1d5cbd66c7 JNI: wrap native wolfSSL_use_certificate_chain_buffer_format() in WolfSSLSession 2024-02-14 13:39:44 -07:00
Chris Conlon 85cfeeaf90 update copyright to 2024 2024-01-16 15:35:09 -07:00
Chris Conlon 682f1ea5fc JSSE: add support for SSLSocket/SSLEngine get/setHandshakeApplicationProtocolSelector() for ALPN select support 2024-01-03 11:19:47 -07:00
Chris Conlon f29486d72e JSSE: add implementation of X509ExtendedTrustManager for internal hostname verification 2023-11-27 15:47:43 -07:00
Chris Conlon 40e94f3f73 JNI/JSSE: throw SocketException with native errno if native socket select() fails 2023-11-03 10:36:12 -06:00
Chris Conlon 3d6ceb09a3 JNI/JSSE: pass socket timeout to select() for wolfSSL_accept() 2023-10-19 15:04:30 -06:00
JacobBarthelmeh 2df44558b9
Merge pull request #144 from cconlon/WolfSSLSessionSyncFix
Fixes for SSLSocket, SSLEngine, session resumption, and synchronization
2023-09-07 11:34:00 -06:00
Chris Conlon d3554835f0 JNI: clean up Javadoc warnings on Java 17 2023-09-01 15:51:06 -06:00
Chris Conlon 4db4c2bdcf JNI/JSSE: wrap native wolfSSL_SetServerID() and call on client side from WolfSSLEngineHelper.doHandshake() 2023-08-16 10:40:40 -06:00
Chris Conlon 4f2df6db81 JNI: don't synchronize on sslLock for read/write calls since native JNI layer already locks mutex 2023-08-10 13:14:56 -06:00
Chris Conlon 02c1cb8f4d JSSE: add wolfjsse.enabledSupportedCurves Security property support 2023-08-03 14:38:12 -06:00
Chris Conlon b2cd0ef051 JNI: add synchronization lock around native WOLFSSL pointer in WolfSSLSession 2023-08-01 13:22:34 -06:00
Chris Conlon 1e5bfb39cb JNI/JSSE: call wolfSSL_get1_session() for saving session, add WolfSSLAuthStore store lock, adjust calls to saveSession/addSession 2023-07-18 12:01:26 -06:00
Chris Conlon 0ecfe9b957 JSSE: add support for wolfjsse.enabledSignatureAlgorithms system Security property, wrap native wolfSSL_set1_sigalgs_list() 2023-07-07 08:39:30 -06:00
Chris Conlon 2eaa54d892 add script to run Facebook Infer, fix reported issues 2023-05-12 15:18:47 -06:00
Chris Conlon 21ea49b6bd update copyright dates to 2023 2023-03-30 15:28:19 -06:00
Chris Conlon 9d6e2fd20c wrap secure renegotiation API, enable in wolfJSSE if compiled at native level 2022-08-17 12:07:55 -06:00
Chris Conlon c06c714a43 fix NullPointerException when no selected ALPN available 2022-05-26 11:36:56 -06:00
Chris Conlon bb97579595 add support for SSLEngine.getApplicationProtocol 2022-05-26 11:36:51 -06:00
Chris Conlon 2e899cc64d JSSE: generate pseudo session ID if session tickets are being used 2022-04-08 16:33:02 -06:00
Chris Conlon c802d5cace correctly throw SocketTimeoutException from WolfSSLSession.connect() for JSSE WolfSSLSocket.startHandshake() to handle timeout 2022-03-15 16:32:51 -06:00
JacobBarthelmeh 3c1b994403
Merge pull request #95 from cconlon/connectTimeout
Support Socket timeout for SSL_connect() and SSL_write() in wolfJSSE
2022-02-15 07:13:19 -07:00
Chris Conlon 15b37d9189 remove RABBIT support, matching wolfSSL deprecation 2022-02-10 10:21:33 -07:00
Chris Conlon dcb5fbfeb1 pass Socket timeout down to native connect() and write() from JSSE level 2022-02-09 16:37:23 -07:00
Chris Conlon 1d9f21df07 remove HC-128 stream cipher support, matching wolfSSL deprecation 2022-01-20 09:47:11 -07:00