Commit Graph

1139 Commits (master)

Author SHA1 Message Date
JacobBarthelmeh b3db25f0ab
Merge pull request #171 from cconlon/select-eintr
JNI: call select() again on error with EINTR
2024-02-01 09:25:12 -07:00
Chris Conlon 60522c7f63
Merge pull request #170 from philljj/fix_sunjsse_issues
Fix sun jsse test issues.
2024-01-30 17:00:47 -07:00
Chris Conlon 247aedd2b1 JNI: call select() again on error with EINTR 2024-01-29 17:33:13 -07:00
jordan 22166cf681 Fix sun jsse test issues. 2024-01-26 13:15:34 -06:00
JacobBarthelmeh 2829ad72ee
Merge pull request #169 from cconlon/SSL_CTX_set1_sigalgs_list
JNI: wrap SSL_CTX_set1_sigalgs_list(), add resume example to JNI Client
2024-01-25 08:18:31 -08:00
Chris Conlon 5146e74c4d JNI: add TLS 1.3 version to example Client.java and Server.java 2024-01-24 15:17:38 -07:00
Chris Conlon 8087699d79 JNI: add example of session resumption to example Client.java 2024-01-24 15:05:06 -07:00
Chris Conlon 91acf5ff19 JNI: wrap native SSL_CTX_set1_sigalgs_list() in WolfSSLContext 2024-01-24 10:03:47 -07:00
JacobBarthelmeh 93814067d6
Merge pull request #168 from cconlon/2024
Update copyright to 2024
2024-01-16 14:51:55 -08:00
Chris Conlon 85cfeeaf90 update copyright to 2024 2024-01-16 15:35:09 -07:00
JacobBarthelmeh 545b500b2b
Merge pull request #167 from cconlon/X509ExtendedKeyManager
JSSE: add implementation of X509ExtendedKeyManager
2024-01-16 14:14:28 -08:00
JacobBarthelmeh f9b4112af2
Merge pull request #166 from cconlon/nativeDebugLogs
Refactor native debug log enablement, register Java native logging callback
2024-01-16 13:59:17 -08:00
Chris Conlon 0d9f321a28 JSSE: add implementation of X509ExtendedKeyManager for chooseEngineClientAlias() / chooseEngineServerAlias() 2024-01-16 12:14:36 -07:00
Chris Conlon 47d36cb0cc JSSE: enable native wolfSSL debug logs at SSLContext and WolfSSLProvider levels, register Java logging callback to push native logs over System.out.println and include thread ID 2024-01-15 16:45:14 -07:00
JacobBarthelmeh 37692e7855
Merge pull request #163 from cconlon/alpnGaps
JSSE: add SSLSocket/Engine support get/setHandshakeApplicationProtocolSelector()
2024-01-03 13:23:33 -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
JacobBarthelmeh 4cc6a45842
Merge pull request #165 from cconlon/sslEngineExtendedTestFix
JSSE: SSLEngine: save session only on connection shutdown
2024-01-02 13:45:04 -07:00
Chris Conlon e6bc9ea721 JSSE: SSLEngine: skip saveSession() after ssl.accept/connect() since TLS 1.3 session ticket can come later, fixes extended SSLEngine test case 2023-12-22 16:39:02 -07:00
JacobBarthelmeh 134f3112c3
Merge pull request #164 from cconlon/tls13Methods
JNI: wrap wolfSSL_CTX_set_groups(), wolfTLSv1_3_client/server_method()
2023-12-21 16:38:32 -07:00
Chris Conlon 465559ebfd JNI: wrap wolfSSL_CTX_set_groups() 2023-12-21 15:59:59 -07:00
Chris Conlon b09556d961 JNI: wrap wolfTLSv1_3_client_method() and wolfTLSv1_3_server_method() 2023-12-21 14:07:33 -07:00
David Garske 67aee347cd
Merge pull request #162 from cconlon/sslSessionGetPeerCertificates
SSLSession fix for getPeerCertificates() and cached cert
2023-12-12 08:17:16 -08:00
Chris Conlon 712d902c43 JSSE: SSLSession: always call ssl.getPeerCertificate() first before returning cached peer cert 2023-12-07 14:29:20 -07:00
Chris Conlon 23ab251e3a JNI: wrap native wolfSSL_CTX_flush_sessions() in com.wolfssl.WolfSSLContext 2023-12-07 14:28:35 -07:00
Chris Conlon c8ed69241a
Merge pull request #161 from JacobBarthelmeh/master
fixes for heap hint used
2023-12-04 10:21:32 -07:00
JacobBarthelmeh dff8690e9e
Merge pull request #159 from cconlon/x509ExtendedTrustManager
Add implementation of javax.net.ssl.X509ExtendedTrustManager
2023-12-04 10:07:11 -07:00
JacobBarthelmeh f99fc863df fixes for heap hint used 2023-12-04 10:03:53 -07:00
JacobBarthelmeh b782a6516f
Merge pull request #160 from cconlon/xfreeFixes
JNI: correct heap pointers for a few XFREE calls in JNI code
2023-12-01 11:43:08 -07:00
Chris Conlon a02f3400ab JNI: correct heap pointers for a few XFREE calls in JNI code 2023-12-01 11:33:43 -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
JacobBarthelmeh 10406c5078
Merge pull request #158 from cconlon/ctxUseSupportedCurve
Wrap wolfSSL_CTX_UseSupportedCurve() in com.wolfssl.WolfSSLContext
2023-11-13 10:37:27 -07:00
Chris Conlon f95e446b87 JNI: wrap wolfSSL_CTX_UseSupportedCurve() in com.wolfssl.WolfSSLContext 2023-11-10 10:21:00 -07:00
JacobBarthelmeh 454d0e6e80
Merge pull request #134 from cconlon/hostname
Skip calling InetAddress.getHostName() to avoid DNS lookups when possible
2023-11-03 16:00:09 -06: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 1a86dd6701
Merge pull request #151 from cconlon/socketExceptionErrno
Throw SocketException if native socket select() fails
2023-11-03 15:46:09 -06:00
JacobBarthelmeh 327bd5a4fc
Merge pull request #157 from cconlon/exampleClientResumeGET
Fix example JSSE client for resume case when sending HTTP GET
2023-11-03 15:32:05 -06:00
Chris Conlon 6a1468f6ad JSSE: fix ClientJSSE example resumption when sending HTTP GET 2023-11-03 13:50:14 -06:00
Chris Conlon 40e94f3f73 JNI/JSSE: throw SocketException with native errno if native socket select() fails 2023-11-03 10:36:12 -06:00
JacobBarthelmeh e48d38b2b5
Merge pull request #156 from cconlon/fipsDebugCleanup
JNI: remove extraneous unable to set FIPS callback debug print
2023-11-02 09:09:27 -06:00
JacobBarthelmeh 48293f962e
Merge pull request #155 from cconlon/clientExampleNoVerify
Fix JSSE example client -d option, add -g for HTTP GET
2023-11-02 09:09:06 -06:00
JacobBarthelmeh 564e1328c4
Merge pull request #154 from cconlon/trustPeerCert
JNI/JSSE: WOLFSSL_TRUST_PEER_CERT support, session resumption fixes
2023-11-01 12:13:39 -06:00
Chris Conlon 30f2109ee3 JNI: remove extraneous unable to set FIPS callback debug print 2023-10-23 15:14:55 -06:00
Chris Conlon 2446ced76e JSSE: fix example client option to disable peer verification, add -g option to send HTTP GET 2023-10-20 17:04:02 -06:00
Chris Conlon f1235884ad JSSE: only store session into Java cache if valid, add error check for wolfSSL_set_session() 2023-10-19 15:05:20 -06:00
Chris Conlon 3d6ceb09a3 JNI/JSSE: pass socket timeout to select() for wolfSSL_accept() 2023-10-19 15:04:30 -06:00
Chris Conlon 15a1c90a8c JSSE: optimize locking of sesPtrLock inside WolfSSLImplementSSLSession, reduce time spent inside lock 2023-10-18 10:44:51 -06:00
Chris Conlon 90a1f0308c JSSE: delay creation of WolfSSLImplementSSLSession objects until needed, reduces overall memory usage by active objects 2023-10-18 10:43:52 -06:00
Chris Conlon 544e054ce3 JNI: lock jniSessLock in native WolfSSLSession.get1Session() since we call wolfSSL_peek() which does I/O 2023-10-18 10:40:58 -06:00