Commit Graph

1010 Commits (5e430a11b13a18988ebeecd5448ae7b9a45bc762)

Author SHA1 Message Date
Chris Conlon 1abeaf1584 JSSE: add Host into HTTP GET in example ClientJSSE, used with -g 2024-07-19 13:33:59 -06:00
Chris Conlon bd56bf8544 JNI: add example threaded client/server applications, client does session resumption with get/setSession() 2024-07-19 13:07:46 -06:00
Ruby Martin 92fc6dca6d close inbound on UNKNOWN_ALPN_PROTOCOL_NAME_E 2024-07-19 11:52:55 -06:00
Ruby Martin 8f09aae2fa set size equal to ret if ret does not equal RECV_READY or SEND_READY 2024-07-19 11:41:32 -06:00
JacobBarthelmeh 3bca9810a8
Merge pull request #211 from cconlon/trustManagerExceptionMsg
JSSE: pass lower level exception messages up during X509TrustManager peer verification
2024-07-19 09:09:16 -06:00
JacobBarthelmeh 1e9509d9e8
Merge pull request #206 from cconlon/sessionDup
JNI: wrap native wolfSSL_SESSION_dup() in WolfSSLSession.duplicateSession()
2024-07-19 09:08:00 -06:00
JacobBarthelmeh fba6fc7a99
Merge pull request #178 from cconlon/wksKeyStoreSupport
Add wolfJCE WKS KeyStore Support
2024-07-19 09:03:48 -06:00
Chris Conlon 112ac9272d JSSE: pass original exception messages up during peer verification, add more debug logs 2024-07-18 16:02:40 -06:00
Chris Conlon 855fdeff2a JSSE: add script to convert example .jks files to wolfJCE WKS KeyStore type (.wks) 2024-07-15 16:17:26 -06:00
Chris Conlon 4de186eae1 JSSE: add wolfjsse.keystore.type.required Security property support to enforce KeyStore type used in KeyManager and TrustManager objects 2024-07-15 16:17:23 -06:00
Chris Conlon 49a781bbd0 JSSE: add -ksformat option to example ClientJSSE and ServerJSSE to specify KeyStore type 2024-07-15 16:16:35 -06:00
Chris Conlon b80a989b4e JSSE: refactor KeyManager and TrustManager loading of KeyStore in engineInit(), add support for wolfJCE WKS KeyStore type 2024-07-15 16:16:35 -06:00
Chris Conlon 1e65f4c215 JSSE: add -sysca option to example clientJSSE, load system CA certs ignoring any passed in 2024-07-15 16:16:35 -06:00
Chris Conlon 58c63ded96 JNI: wrap native wolfSSL_SESSION_dup() in WolfSSLSession.duplicateSession() 2024-07-12 15:04:38 -06:00
JacobBarthelmeh bef6379273
Merge pull request #201 from cconlon/socketSelectEAGAIN
JNI/JSSE: Add support for poll(), fix for EAGAIN and select()
2024-07-11 15:12:09 -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 7e5ace50c8 JNI: call select() again when return -1 and errno is EAGAIN 2024-06-27 16:34:39 -06:00
Chris Conlon a35247541e
Merge pull request #205 from sstefonic/handshakeFailureClose
Close socket if handshake fails
2024-06-27 13:42:42 -06:00
Sage Stefonic ab159d4108 remove check socket closed check 2024-06-27 11:12:06 -07:00
Chris Conlon 910b6124f4
Merge pull request #204 from jackctj117/fix-getLocalPrincipal
Changed getLocalPrincipal to assume user cert is first in chain
2024-06-17 11:56:44 -06:00
Sage Stefonic b0e7bf31f8 close socket if handshake fails 2024-06-14 15:01:36 -07:00
Jack Tjaden 0057b457ec Fixed indentation for logic need to be add line 2024-06-14 15:03:09 -06:00
Jack Tjaden 2fcc066ad7 Changed testSessionTimeAndCerts to fail if principal is null 2024-06-14 10:33:17 -06:00
Jack Tjaden 291116d731 Changed getLocalPrincipal to assume user cert is first in chain 2024-06-13 15:56:13 -06:00
Chris Conlon 318af35470
Merge pull request #203 from sstefonic/engineDebugFix
Fix mistake in SSLEngine debug logs
2024-06-13 15:36:29 -06:00
Sage Stefonic a8af4d20dc fix mistake in SSLEngine debug logs 2024-06-13 13:52:05 -07:00
Chris Conlon 151853de8e
Merge pull request #200 from sstefonic/deleteClose
Delete close method in WolfSSLServerSocket
2024-06-10 17:23:26 -06:00
Sage Stefonic 8aecdb1b4b delete close method in WolfSSLSeverSocket 2024-06-10 15:55:53 -07:00
JacobBarthelmeh bb12cc94a0
Merge pull request #199 from cconlon/sslSessionGetPeerCertificates
Return X509Certificate[] from SSLSession.getPeerCertificates()
2024-06-07 13:06:17 -06:00
Chris Conlon 87412b0639
Merge pull request #198 from sstefonic/fixTLSv10Test
update TLSv1.0 and TLSv1.1 test
2024-06-07 12:41:45 -06:00
Chris Conlon 7486579741 JSSE: return X509Certificate[] from SSLSession.getPeerCertificates() to match SunJSSE behavior 2024-06-07 12:24:15 -06:00
Sage Stefonic 2ae264bb3c update TLSv1.0 test 2024-06-06 15:35:01 -07:00
JacobBarthelmeh bbde8fa9ed
Merge pull request #197 from cconlon/sslEngineFixesMay2024
SSLEngine fixes around HandshakeStatus, beginHandshake(), and alerts
2024-06-06 16:15:14 -06:00
Chris Conlon 1300881c44 JSSE: check if session is resumable before storing or returning existing one in WolfSSLAuthStore.getSession() 2024-05-31 14:52:56 -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 5b31cf2306 SSLEngine: correctly mark inbound and outbound closed when receiving alerts 2024-05-31 11:40:53 -06:00
Chris Conlon 267a8d2c24 SSLEngine: throw SSLException if beginHandshake() called twice by user, renegotiation not supported 2024-05-31 11:40:53 -06:00
Chris Conlon 399883cb5a SSLEngine: only set HandshakeStatus FINISHED when session ticket received after handshake has completed 2024-05-31 11:40:53 -06:00
Chris Conlon 90bf503edc
Merge pull request #196 from sstefonic/throwInitExceptions
KeyManagerFactory and TrustManagerFactory throw exceptions if used when uninitialized
2024-05-31 11:39:44 -06:00
Sage Stefonic 26363f44d8 Update testUseBeforeInit() to match new behavior 2024-05-29 10:20:40 -07:00
Sage Stefonic 90627f0864 KeyManager and TrustManager throw exceptions if used when uninitialized 2024-05-28 13:25:26 -07:00
JacobBarthelmeh 2353670bd8
Merge pull request #193 from cconlon/sslEngineFixesMay2024
SSLEngine fixes for session cache, getError(), and unwrap() HandshakeStatus
2024-05-22 15:35:09 -06:00
Chris Conlon 37cf4dc7d2
Merge pull request #195 from sstefonic/fixInputStreamRead
fix read() in WolfSSLInputStream to reflect end of stream
2024-05-22 15:22:53 -06:00
Sage Stefonic 4a3f29f7ee Declare variable at top of method 2024-05-22 13:37:39 -07:00
Chris Conlon 9b8f8d00be
Merge pull request #194 from sstefonic/socketFix
Fix WolfSSLServerSocket closing issue
2024-05-22 14:27:55 -06:00
Sage Stefonic c6e04d4f40 fix read() to reflect end of stream 2024-05-21 16:12:55 -07:00
Sage Stefonic 06d8e4de66 Fix the socket closing issue with WolfSSLSocket 2024-05-20 09:58:03 -07:00
Chris Conlon 8d805ff796 JSSE: check this.toSend for null before getting length in SSLEngine.unwrap() when we have data buffered 2024-05-17 15:07:15 -06:00
Chris Conlon ddb9d2b0ea JSSE: fix WolfSSLSocketTest protocolConnectionTestExtendedSocket() string for TLSv1 2024-05-16 16:46:42 -06:00
Chris Conlon b50ab50788 SSLEngine: return HandshakeStatus.FINISHED from unwrap() when TLS 1.3 session ticket has been received 2024-05-16 16:11:52 -06:00