Commit Graph

171 Commits (eb6919e0b51ac6bb4dd062a5916a7d41f99d46c6)

Author SHA1 Message Date
JacobBarthelmeh 81ac648158
Merge pull request #124 from cconlon/sslEngineSynchronization
SSLEngine: synchronize access to internal send/recv buffers
2023-05-17 15:52:05 -06:00
Chris Conlon 69596e8d7a fix build errors and warnings for Visual Studio on Windows, declare variables at top of scope 2023-05-09 15:06:37 -06:00
Chris Conlon e070ca4feb g_cachedSSLObj in NativeSSLIORecv/SendCb should not be static for thread safety 2023-05-04 15:36:06 -06:00
Chris Conlon 21ea49b6bd update copyright dates to 2023 2023-03-30 15:28:19 -06:00
Chris Conlon 097a707a12 wrap native wolfSSL_CertManagerUnloadCAs() 2022-11-28 14:14:32 -07:00
JacobBarthelmeh a208237bdc
Merge pull request #74 from cconlon/keystoreProperty
add support for keyStore/keyStoreType/keyStorePassword system properties
2022-08-19 10:24:32 -06:00
Chris Conlon eceec985d3 add support for keyStore/keyStoreType/keyStorePassword system properties 2022-08-17 14:42:50 -06:00
Chris Conlon 77277fe9a1 fix gcc 9.4.0 warning for strncat in com_wolfssl_WolfSSL.c 2022-08-17 12:07:58 -06:00
Chris Conlon 9d6e2fd20c wrap secure renegotiation API, enable in wolfJSSE if compiled at native level 2022-08-17 12:07:55 -06:00
Chris Conlon ec5f91d8be native JNI fixes for NO_FILESYSTEM 2022-06-15 12:25:21 -06:00
Chris Conlon bb97579595 add support for SSLEngine.getApplicationProtocol 2022-05-26 11:36:51 -06:00
Chris Conlon 3fd0b1bdf0 WolfSSLCertificate: let Java do the modified UTF-8 conversion for toString() 2022-04-22 16:07:17 -06:00
Chris Conlon d1251768ac fix compiler warnings when HAVE_PK_CALLBACKS is not defined 2022-04-21 11:04:39 -06:00
Takashi Kojo 7ef5c79338 Return success on write 2022-04-05 08:16:54 +09:00
Chris Conlon c802d5cace correctly throw SocketTimeoutException from WolfSSLSession.connect() for JSSE WolfSSLSocket.startHandshake() to handle timeout 2022-03-15 16:32:51 -06:00
Chris Conlon b3533c0acc native Java pointers can be negative on some platforms, compare against 0 not <=0 2022-02-15 09:34:43 -07:00
JacobBarthelmeh 3c1b994403
Merge pull request #95 from cconlon/connectTimeout
Support Socket timeout for SSL_connect() and SSL_write() in wolfJSSE
2022-02-15 07:13:19 -07:00
JacobBarthelmeh 6a9a625267
Merge pull request #98 from cconlon/typeCasting
Fix possible typecasting issues, typecast cleanup in native functions
2022-02-15 07:09:36 -07:00
JacobBarthelmeh 8843cb0847
Merge pull request #97 from cconlon/removeIdea
Remove IDEA support
2022-02-15 07:02:04 -07:00
Chris Conlon 09379e8e63 fix native pointer arg checks, fixes potential typecasting issues 2022-02-14 17:00:10 -07:00
Chris Conlon 80603f3c05 remove IDEA support, matching wolfSSL deprecation 2022-02-10 10:29:07 -07:00
Chris Conlon 15b37d9189 remove RABBIT support, matching wolfSSL deprecation 2022-02-10 10:21:33 -07:00
Chris Conlon dcb5fbfeb1 pass Socket timeout down to native connect() and write() from JSSE level 2022-02-09 16:37:23 -07:00
JacobBarthelmeh 2161012ac6
Merge pull request #90 from cconlon/setFdDelegate
add support to WolfSSLSession.setFd() for handling delegate SocketImpl
2022-01-21 03:03:50 -07:00
Chris Conlon 1d9f21df07 remove HC-128 stream cipher support, matching wolfSSL deprecation 2022-01-20 09:47:11 -07:00
Chris Conlon f1b07e2832 add support to WolfSSLSession.setFd() for handling delegate SocketImpl at JNI layer 2022-01-19 10:20:43 -07:00
Chris Conlon 8c41245dc4 update copyright dates to 2022 2022-01-18 10:19:03 -07:00
Chris Conlon f0ce1195d7 update missing Javadocs, fixes build warnings with newer JDKs 2022-01-17 14:27:54 -07:00
Chris Conlon c0809ed98e use uintptr_t instead of intptr_t in com_wolfssl_WolfSSL.c 2021-12-03 14:47:30 -07:00
Chris Conlon 202aa77ff4 run FIPS 140-3 CAST up front on library load if needed 2021-11-12 14:27:19 -07:00
Chris Conlon 6e0b59090f fix FIPS Ready compatibility with WC_RNG_SEED_CB 2021-11-11 11:34:41 -07:00
Chris Conlon 2b402959bc add WolfSSL.getCiphersAvailableIana(), use to set default cipher suites in JSSE WolfSSLContext 2021-11-11 11:34:37 -07:00
Chris Conlon 42b86b6e44 fix unused variable warnings when HAVE_FIPS not defined 2021-10-12 15:50:19 -06:00
Chris Conlon da5dc9df42 remove extraneous XFREE calls in WolfSSLCertificate.c 2021-10-12 15:50:19 -06:00
Chris Conlon b226e7d045 free native WOLFSSL PK callback ctx global jni refs in wolfSSL_free() 2021-10-12 15:50:19 -06:00
Chris Conlon 8c01c9c93f add call to DeleteGlobalRef for native WOLFSSL CRL callback, only currently applies to JNI not JSSE-only 2021-10-12 15:50:19 -06:00
Chris Conlon 7597b5e35a make sure to DeleteGlobalRef on g_cachedSSLObj in error cases when setting up in newSSL() 2021-10-12 15:50:19 -06:00
Chris Conlon c7925f45dc add call to DeleteGlobalRef for native CTX-level CRL callback, only affects JNI not JSSE 2021-10-12 15:50:19 -06:00
Chris Conlon 062a63e8da add call to DeleteGlobalRef for native CTX-level verify callback, only affects JNI not JSSE 2021-10-12 15:50:19 -06:00
Chris Conlon d0e2ceaa9e add call to DeleteGlobalRef for native FIPS callback object (HAVE_FIPS builds only) 2021-10-12 15:50:19 -06:00
Chris Conlon b5d5ffd5fb add call to DeleteGlobalRef for native logging callback object 2021-10-12 15:50:19 -06:00
Chris Conlon db10d01ac1 fix memory leak of internal verify callback, add support for multiple simultaneous session callbacks 2021-10-04 11:56:32 -06:00
JacobBarthelmeh ebfe3239f0 abort use of array elements on error case 2021-10-03 21:32:01 -07:00
JacobBarthelmeh 274c36ecbd use '0' when releasing array 2021-10-03 20:12:16 -07:00
Chris Conlon de084ea6eb fix socketSelect setting of timeout sec/usec 2021-08-06 13:56:34 -06:00
Chris Conlon 00f84cca71 use JNIGlobalRefType enum, delete FIPS callback jstring ref, return NOT_COMPILED_IN from setFIPSCb 2021-05-18 12:14:11 -06:00
Chris Conlon 246db59dd4 wrap native wolfCrypt_SetCb_fips() and wolfCrypt_GetCoreHash_fips() to get FIPS verifyCore value 2021-05-11 14:27:49 -06:00
Chris Conlon 8b2ea7899e update copyright to 2021 2021-01-14 10:03:57 -07:00
Chris Conlon 4294c1df8b fix native compiler warnings for older versions of wolfSSL 2020-10-07 14:49:24 -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