Commit Graph

111 Commits (d8c18c5f5b4a30a1724014b6d834fc860e7a0cb8)

Author SHA1 Message Date
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
Chris Conlon 086f0c9440 JSSE: SSLSocket: add getApplicationProtocol(), fixes okhttp compatibility with h2 2023-10-10 10:27:21 -06:00
Chris Conlon fd940c0ae4 JSSE: SSLSocket: additional exceptions if Socket has been closed, only try TLS shutdown on close() if handshake has completed 2023-10-06 12:01:26 -06:00
Chris Conlon b9652d79ee JSSE: protect WolfSSLInputStream/WolfSSLOutputStream calls to ssl.read/write using ioLock 2023-09-19 16:14:27 -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 c6e5842a2c JSSE: register I/O callbacks in SSLSocket using wrapped Socket Input/OutputStream if setting internal fd fails 2023-08-28 16:50:36 -06:00
Chris Conlon e7fd6d4fc4 JSSE: add more debug logs to WolfSSLSocket, synchronize read/write calls in WolfSSLInputStream/WolfSSLOutputStream classes 2023-08-16 10:40:43 -06:00
Chris Conlon d98260d1aa JSSE: make WolfSSLImplementSession sesPtr lock static, add debug logs 2023-08-16 10:40:43 -06:00
Chris Conlon f7523b217e JSSE: add WolfSSLSocket.sessionResumed() non-standard method for detecting if native session resumed 2023-08-16 09:56:41 -06:00
Chris Conlon a8db5c4c5e initial fixes from SonarQube 2023-05-19 16:45:33 -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 0870c42372 SSLSocket: remove class variable InetSocketAddress, can be local to methods which require 2022-11-23 13:41:48 -07:00
Chris Conlon d643ee0b7c support null hostname with SSLSocketFactory.createSocket(Socket, String, int, boolean) 2022-11-18 15:37:14 -07:00
Takashi Kojo 9e73a196c0 Catch SocketTimeOutException in startHandshake 2022-04-05 08:16:18 +09:00
Chris Conlon 9423567713 do not return from startHandshake if handshakeInitCalled == true 2022-03-17 17:25:49 -06: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 8c41245dc4 update copyright dates to 2022 2022-01-18 10:19:03 -07:00
Chris Conlon b5443802a6 whitespace: remove trailing spaces 2022-01-18 09:57:00 -07:00
JacobBarthelmeh d28e6e616e
Merge pull request #92 from cconlon/javadocUpdate
update missing Javadocs
2022-01-17 22:37:47 -07:00
Chris Conlon f0ce1195d7 update missing Javadocs, fixes build warnings with newer JDKs 2022-01-17 14:27:54 -07:00
Chris Conlon d3665b5c72 WolfSSLSocket: test if close() called before WolfSSLSocket init, prevent NullPointerException 2022-01-07 14:36:31 -07:00
Chris Conlon bb47e82ccc SSLSocket.getSession() is expected to do handshake if not completed yet 2021-11-18 13:54:01 -07:00
Chris Conlon cda657839b free native WOLFSSL when WolfSSLSocket is closed, earlier than finalize 2021-10-12 15:50:19 -06:00