Commit Graph

62 Commits (cda657839ba9399aaaea065c75706463095cd3ab)

Author SHA1 Message Date
Chris Conlon cda657839b free native WOLFSSL when WolfSSLSocket is closed, earlier than finalize 2021-10-12 15:50:19 -06:00
Chris Conlon 87cd7fcb84 fix WolfSSLSocket.getSoTimeout() use with inner socket 2021-07-09 17:09:38 -06:00
Chris Conlon 04966651d6 more verbose debug on Socket close, set autoClose to true by default for internal Socket 2021-03-01 15:19:51 -07:00
Chris Conlon cd0a215902 set WolfSSLSocket autoClose to false by default when not explicitly set 2021-02-22 15:03:06 -07:00
Chris Conlon 39c7192267 close inner socket when autoClose is set to true 2021-02-22 14:48:19 -07:00
Chris Conlon 6922c9cac6 wrap Socket functions in WolfSSLSocket for correct use with inner Socket 2021-02-08 17:32:40 -07:00
Chris Conlon 8b2ea7899e update copyright to 2021 2021-01-14 10:03:57 -07:00
Jacob Barthelmeh 77dcddd8c0 fixes for infer null deref. warnings 2021-01-10 16:29:21 +07:00
Chris Conlon 518e3b39dd WolfSSLSocket: check if Socket closed before TLS shutdown 2020-10-14 13:53:20 -07:00
Chris Conlon d413b69d68 pass SSLSocket recv SO_TIMEOUT to native select() for SSL_read() and SSL_shutdown() 2020-10-06 15:39:08 -07:00
Chris Conlon ca5a954b0e in SSLSocket read/write, check if connection is closed before trying to complete handshake 2020-09-28 13:38:57 -06:00
Takashi Kojo a4bc3364c9 No exception on ZERO_RETURN 2020-08-25 14:28:02 -07:00
Takashi Kojo 898b10659b SOCKET_PEER_CLOSED && (ret == 0) 2020-08-21 15:34:37 -07:00
Chris Conlon 0b6d930767 cast app_data to wolfSSL_Mutex, non-blocking SSL_shutdown, register ALPN
with WOLFSSL, Input/OutputStream to static
2020-07-21 15:29:47 -06:00
Chris Conlon 3a15c68f2c add non-standard SSLSocket.setAlpnProtocols() and SSLSocket.getAlpnSelectedProtocol() for use on Android 2020-07-21 12:46:28 -06:00
Chris Conlon b8beec8a33 set socket to non blocking by default, initialize Input/OutputStreams as needed, move read/writeLock inside Input/OutputStream 2020-07-21 12:39:20 -06:00
Chris Conlon fe860102a9 add extra debug logs around SSLSocket locks 2020-07-01 16:07:17 -06:00
Chris Conlon 1d9f35da0b move ioLock inside WANT_READ/WRITE loops 2020-07-01 15:38:35 -06:00
Chris Conlon edd79a62ae use one ioLock to protect all JSSE I/O operations 2020-06-24 18:41:57 -06:00
Chris Conlon 1cbb08a18b add non-blocking support for JSSE SSLSocket 2020-06-22 13:06:58 -06:00
Chris Conlon 902fb0390a add client-side session ticket support 2020-06-11 14:27:06 -06:00
Chris Conlon 758acaee82 add more debug logs to WolfSSLSocket 2020-06-10 15:51:47 -06:00
kojo1 ba540b0b95 Merge branch 'sni' of https://github.com/cconlon/wolfssljni into sni 2020-05-28 08:51:26 +09:00
Chris Conlon 7687f9a302 enable SNI with socket hostname if jsse.enableSNIExtension property is set 2020-05-26 16:12:33 -06:00
Chris Conlon ca2b114309 add handshake lock, handshake completed checks to WolfSSLSocket, move WolfSSLInputStream and WolfSSLOutputStream into WolfSSLSocket 2020-05-22 15:06:45 -06:00
Chris Conlon df780e6fe7 add support for newer SSLParameters getServerName/setServerName via reflection 2020-05-13 16:52:11 -06:00
Chris Conlon 751ae252bc add WolfSSLParameters to use internally instead of SSLParameters 2020-05-13 11:58:34 -06:00
Chris Conlon d189af7707 print protocol version and cipher suite after connection when debug is enabled 2020-03-19 09:42:12 -06:00
Chris Conlon 8bfe57258f WolfSSLSocket: use explicit com.wolfssl.WolfSSLContext to prevent class name clash/confusion 2020-03-18 11:33:24 -06:00
Chris Conlon 86412100ef add finalize() to free WolfSSLSession if needed in WolfSSLSocket 2020-03-18 11:23:12 -06:00
JacobBarthelmeh 682980f7a0
Merge pull request #4 from cconlon/copyright_update
update copyright to 2020
2020-01-06 23:05:58 +07:00
Chris Conlon 7ba5a60872 update copyright to 2020 2020-01-03 14:50:25 -08:00
Jacob Barthelmeh 0255f87d1f add init of session parameters to socket and add create new session if marked invalid 2019-12-26 17:55:32 +07:00
Jacob Barthelmeh b64fd049b7 increase code coverage and remove whitespaces 2019-04-18 16:55:51 -06:00
Jacob Barthelmeh f03747ab66 updates to decouple params and server example 2019-04-17 16:36:59 -06:00
Jacob Barthelmeh cc5f8c1744 refactor debug print out 2019-04-16 13:59:06 -06:00
Chris Conlon cb19ff80c1 tests and fixes for SSLContext, SSLServerSocket 2019-04-15 15:33:44 -07:00
Chris Conlon ff61d2060b add javadoc comments for SSLContext, SSLSocket, SSLSocketFactory, SSLServerSocketFactory 2019-04-11 16:30:18 -07:00
Chris Conlon ecf34a1688 session resumption: fix SSLSocket and add test, only store session table on client side, add debug to WolfSSLAuthStore 2019-04-10 10:15:58 -07:00
Chris Conlon 2026046500 SSLSocket and SSLServerSocket fixes and tests 2019-04-03 11:09:41 -07:00
Chris Conlon b4dd125798 add SSLSocketFactory createSocket() with consumed InputStream 2019-04-02 14:12:07 -07:00
Chris Conlon c90616502c SSLSocketFactory tests, call saveSession from SSLSocket 2019-04-02 12:15:09 -07:00
Chris Conlon c83130e7f4 SSLSocket/ServerSocket fixes 2019-04-01 20:59:26 -06:00
Chris Conlon c52a33d39b adjust exceptions in SSLSocket 2019-03-28 09:39:52 -07:00
Chris Conlon 4ed4eac0b4 call initHandshake() from SSLSocket startHandshake() 2019-03-27 16:08:52 -07:00
Chris Conlon 65916238ca add synchronization for SSLSocket, SSLServerSocket 2019-03-27 10:30:39 -07:00
Chris Conlon 54fd9aebef fix parameter handling in SSLSocket and SSLServerSocket 2019-03-20 09:20:47 -07:00
Chris Conlon 41079584a6 more debug statements in SSLSocket and SSLServerSocket 2019-03-19 12:47:50 -07:00
Chris Conlon f287525c9b fixes to server-side and SSLSocket implementation 2019-03-19 09:45:15 -07:00
Chris Conlon db13b670a5 add debug logging with wolfjsse.debug system property 2019-03-15 12:56:10 -07:00