Commit Graph

366 Commits (3db36b7383424866919dd9f9e6ff87b94858bb97)

Author SHA1 Message Date
Chris Conlon 3db36b7383 update README with recent additions 2020-03-20 16:25:24 -06:00
Chris Conlon 4be67544a8 include core-libart in Android.mk for platforms that do not automatically link against it 2020-03-20 16:17:05 -06:00
Chris Conlon 97e1b65d67 skip loading EC keys from JDK 1.7.0_171 due to bug 2020-03-20 16:16:21 -06:00
Chris Conlon dcc52e41cd cast wolfSSL_get_peer_certificate() return to uintptr_t, throw SSLPeerUnverifiedException if no peer cert in WolfSSLImplementSSLSession 2020-03-19 18:17:08 -06:00
Chris Conlon 823fcb6bcc add null protections in WolfSSLX509.java 2020-03-19 14:06:41 -06:00
Chris Conlon c9fbdd6f71 add KEEP_PEER_CERT to Android.mk build files 2020-03-19 14:06:18 -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 6a13ad0b96 update Android AOSP README with notes about using Android logging for debug 2020-03-19 09:20:59 -06:00
Chris Conlon 41df65cc0b build.xml: use nativeheaderdir on Java 1.8.0+, otherwise fall back to javah 2020-03-19 08:58:32 -06:00
Chris Conlon f938878d67 use same cert order in WolfSSLTrustX509Test for Java 1.7, wofJSSE now registered as provider 2020-03-19 08:14:51 -06:00
Chris Conlon 027909df05 WolfSSLContext.c fix unused parameter wcompiler warnings 2020-03-18 20:27:59 -06:00
Chris Conlon 1917791b33 WolfSSLTrustManager: use AndroidCAStore KeyStore for system certs if available to prevent loading manually 2020-03-18 20:27:55 -06:00
Chris Conlon 887a00a8d3 WolfSSLTrustX509: isolate getAcceptedIssuers() logic in single function to avoid using extra memory held at object level 2020-03-18 12:40:55 -06:00
Chris Conlon c34a62cc3f WolfSSLTrustX509: isolate WolfSSLCertManager use to one single-shot function for verification to avoid holding native resources at object level 2020-03-18 12:40:51 -06:00
Chris Conlon dd3522d323 WolfSSLSocketFactory: use explicit com.wolfssl.WolfSSLContext to prevent class name clash/confusion 2020-03-18 11:33:32 -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 661377f18f WolfSSLServerSocket: use explicit com.wolfssl.WolfSSLContext to prevent class name clash/confusion 2020-03-18 11:25:54 -06:00
Chris Conlon d34a219e74 WolfSSLContext: keep track of loaded CA count, close ByteArrayOutputStream when finished, add missing finalizers 2020-03-18 11:23:12 -06:00
Chris Conlon 05f0924789 reset sslPtr to 0 after free in WolfSSLSession 2020-03-18 11:23:12 -06:00
Chris Conlon ccd0456a08 wrap WolfSSLContext finalizer free to catch IllegalStateException if already freed 2020-03-18 11:23:12 -06:00
Chris Conlon 427c8782da wrap WolfSSLCertificate finalizer free() to catch IllegalStateException if already freed 2020-03-18 11:23:12 -06:00
Chris Conlon f26f6fad83 cast to uintptr_t instead of intptr_t in WolfSSLX509StoreCtx.c 2020-03-18 11:23:12 -06:00
Chris Conlon 0d3fe7259d cast to uintptr_t instead of intptr_t in WolfSSLSession.c 2020-03-18 11:23:12 -06:00
Chris Conlon 74a29c8adc use GetByteArrayElements to save memory, cast to uintptr_t instead of intptr_t 2020-03-18 11:23:12 -06:00
Chris Conlon f90ddd9609 cast to uintptr_t instead of intptr_t in WolfSSLCertManager.c 2020-03-18 11:23:12 -06:00
Chris Conlon 86412100ef add finalize() to free WolfSSLSession if needed in WolfSSLSocket 2020-03-18 11:23:12 -06:00
Chris Conlon 5ee59c2458 move finalize() in WolfSSLX509.java to bottom of class 2020-03-18 11:23:12 -06:00
Chris Conlon e5df02f8be add finalize() to WolfSSLTrustX509.java 2020-03-18 11:23:12 -06:00
Chris Conlon 8931893e0d cast to uintptr_t instead of intptr_t, add call to XFREE 2020-03-18 11:23:12 -06:00
Chris Conlon 75f535f3ba use Get/ReleaseByteArrayElements in WolfSSLCertManager.c, can save memory depending on implementation 2020-03-18 11:23:12 -06:00
Chris Conlon 51bf8083d2 use XMALLOC/XFREE in WolfSSL.c and WolfSSLSession.c 2020-03-18 11:23:11 -06:00
Chris Conlon 999b6f52b4 cleanups and optimizations in WolfSSLCertificate, WolfSSLTrustManager 2020-03-18 11:23:11 -06:00
Chris Conlon 3fbc9986dd free JNI Strings in WolfSSLCertManager.c 2020-03-18 11:23:11 -06:00
JacobBarthelmeh c56cbd9660
Merge pull request #36 from cconlon/argcheck
check X509Certificate[] for null in getLocalPrincipal()
2020-03-12 15:45:47 -06:00
Chris Conlon e992762868 check X509Certificate[] for null in WolfSSLImplementSSLSession getLocalPrincipal() 2020-03-10 10:18:47 -06:00
JacobBarthelmeh d38ee6b440
Merge pull request #35 from cconlon/leak2
add finalize() methods for WolfSSLCertManager, WolfSSLCertificate
2020-03-09 15:26:28 -06:00
JacobBarthelmeh 0769e53c13
Merge pull request #34 from cconlon/leakfix
free WolfSSLCertificate in WolfSSLTrustManager when done with it
2020-03-09 15:23:10 -06:00
Chris Conlon 0d28f231c2 add finalize() methods for WolfSSLCertManager and WolfSSLCertificate classes 2020-03-06 17:34:22 -07:00
Chris Conlon 70345f42d6 free WolfSSLCertificate in WolfSSLTrustManager when done with it 2020-03-05 15:49:45 -07:00
JacobBarthelmeh c697bc9dd9
Merge pull request #33 from cconlon/junitproviderorder
register wolfJSSE as first Security provider in unit tests
2020-02-28 09:40:33 -07:00
Chris Conlon d836db78b0 register wolfJSSE as first Security provider in unit tests 2020-02-27 17:08:45 -07:00
JacobBarthelmeh b3301d3479
Merge pull request #32 from cconlon/systemcerts
Improve system CA cert loading, PKIX TrustManager, Android improvements
2020-02-26 15:01:58 -07:00
Chris Conlon 79a1c5484a rename example.com peer cert to example-com.der 2020-02-26 14:40:06 -07:00
Chris Conlon f78612dee9 free der array in WolfSSLCertificate.c 2020-02-26 14:39:15 -07:00
Chris Conlon d1ecce7051 update README placeholder with new items 2020-02-26 13:21:32 -07:00
Chris Conlon 9f8fbdcab3 adjust Android default CA cert loading in TrustManager 2020-02-26 12:36:22 -07:00
Chris Conlon 0006e5dc48 add test case for X509Certificate.getSubjectAlternativeNames() 2020-02-26 12:07:30 -07:00
Chris Conlon 93b84e31d9 add X509Certificate.getSubjectAlternativeNames() support 2020-02-25 17:18:03 -07:00
Chris Conlon c22efee788 load Android trusted system certs by default if available 2020-02-17 17:03:55 -07:00
Chris Conlon 31189f6264 add WolfSSLCertificate constructors for PEM arrays and files, DER files 2020-02-17 17:03:51 -07:00