Commit Graph

134 Commits (58ea3f8647f2a9d3b8962ffcab3a897e69f64fa6)

Author SHA1 Message Date
Ruby Martin 58ea3f8647 removed checkAndInitSSLSocket from close() 2026-02-09 11:38:12 -07:00
Chris Conlon 464cfc39d1 Update copyright dates to 2026 2026-01-08 10:05:04 -07:00
Ruby Martin e23ff98baa
Merge pull request #278 from cconlon/sslSocketFreeFix
JSSE: protect from calling freeSSL() while I/O operations in progress
2025-08-18 10:57:30 -06:00
Chris Conlon 2289eed53d SSLSocket.close() NullPointerException fix, check EngineHelper for null in close() 2025-07-31 11:45:02 -06:00
Chris Conlon 17fe8adf46 JSSE: protect from calling freeSSL() while I/O operations are still in progress 2025-07-02 14:19:12 -06:00
Chris Conlon 4d22a1a584 JSSE: fix for NullPointerException on double close() in WolfSSLSocket 2025-07-01 15:47:53 -06:00
Chris Conlon 07380615b5 JSSE: skip calling freeSSL() inside SSLSocket.close() if InputStream or OutputStream are still active 2025-06-11 09:57:58 -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
Ruby Martin 74bf974354 JSSE: implement SNIMatcher logic for wolfSSLSockets
add thread safety
2025-05-14 16:11:23 -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 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
Chris Conlon eb4ee89bd0 JNI/JSSE: update copyright to 2025 2025-01-06 15:48:38 -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 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
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 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
Chris Conlon fe40fe7575 JSSE: fix deadlock issues between SSLSocket close() and OutputStream write() 2024-11-06 10:18:37 -07:00
Chris Conlon d8c18c5f5b JSSE: correct IOException to SocketException, fix for setting fd once socket is connected 2024-10-30 17:25:33 -06:00
Chris Conlon 502d617a52 JSSE: fix warnings in WolfSSLSocket from gradle build 2024-09-20 15:24:11 -06:00
Chris Conlon 3f80193da8 JSSE: avoid potential deadlock between SSLSocket.close() and Input/OutputStream.close() 2024-09-12 15:32:31 -06:00
Chris Conlon 1b3c748764 JSSE: return -1 for end of stream in WolfSSLInputStream.read() when SOCKET_ERROR_E encountered 2024-08-07 12:01:13 -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
Sage Stefonic ab159d4108 remove check socket closed check 2024-06-27 11:12:06 -07:00
Sage Stefonic b0e7bf31f8 close socket if handshake fails 2024-06-14 15:01:36 -07:00
Sage Stefonic 4a3f29f7ee Declare variable at top of method 2024-05-22 13:37:39 -07:00
Sage Stefonic c6e04d4f40 fix read() to reflect end of stream 2024-05-21 16:12:55 -07: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 65e4191ba4 JSSE: release WolfSSLEngineHelper state from WolfSSLSocket when SSLSocket.close() is called 2024-04-19 14:18:51 -06:00
Chris Conlon c5304ebb19 JSSE: close WolfSSLInput/OutputStream when SSLSocket.close() is called, allows stream objects to be garbage collected more easily 2024-04-19 14:18:51 -06:00
Chris Conlon c0cdeeea5a JSSE: fix Javadoc warnings from Java 17 2024-04-05 16:20:15 -06:00
Chris Conlon aa52ea4f4f Infer fixes for WolfSSLSocket 2024-04-05 10:57:26 -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 1d0b807d9c JSSE: fix handling of setWantClientAuth()/setNeedClientAuth in SSLEngine and choosing of key alias with chooseEngineClient/ServerAlias() 2024-02-14 13:39:44 -07:00
jordan dbb0ee80e5 Don't skip renegotiation for invalidated sessions. 2024-02-09 15:38:07 -06:00
jordan d38a989f23 Don't handshake on unconnected socket. 2024-02-09 14:35:19 -06:00
jordan 22166cf681 Fix sun jsse test issues. 2024-01-26 13:15:34 -06: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 75cf505e9a JSSE: remove extraneous ioLock in WolfSSLInputStream/WolfSSLOutputStream, prevents threaded I/O from working properly; already have a native JNI mutex lock in place around WOLFSSL read/write operations 2023-11-28 16:24:01 -07:00
Chris Conlon 76513f60de JSSE: set peer InetAddress in WolfSSLSocket.connect(), use as first choice for SNI if jdk.tls.trustNameService set to true 2023-11-28 10:27:03 -07:00
Chris Conlon f29486d72e JSSE: add implementation of X509ExtendedTrustManager for internal hostname verification 2023-11-27 15:47:43 -07:00
Chris Conlon 35ab8366c1 Avoid calling InetAddress.getHostName() unless jdk.tls.trustNameService property is set, avoids unnecessary DNS lookups 2023-11-03 15:52:32 -06:00
JacobBarthelmeh 63f3497815
Merge pull request #149 from cconlon/WolfSSLSocket_ioLock
SSLSocket threading fixes, TLS 1.3 session cache fixes, extended threading test
2023-10-10 14:21:20 -06:00