File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 *
2727 *************************************************************************************************/
2828
29+ const DEBUG_MODE = false ;
30+
2931function buildX509CertificateFromBytes ( certBytes ) {
3032 const ByteArrayInputStream = Java . use ( 'java.io.ByteArrayInputStream' ) ;
3133 const CertFactory = Java . use ( 'java.security.cert.CertificateFactory' ) ;
@@ -430,8 +432,26 @@ const PINNING_FIXES = {
430432 } ;
431433 }
432434 }
435+ ] ,
436+
437+ 'com.android.org.conscrypt.TrustManagerImpl' : [
438+ {
439+ methodName : 'checkTrustedRecursive' ,
440+ replacement : ( ) => {
441+ const arrayList = Java . use ( "java.util.ArrayList" )
442+ return function (
443+ certs ,
444+ host ,
445+ clientAuth ,
446+ untrustedChain ,
447+ trustAnchorChain ,
448+ used
449+ ) {
450+ return arrayList . $new ( ) ;
451+ }
452+ }
453+ }
433454 ]
434-
435455} ;
436456
437457const getJavaClassIfExists = ( clsName ) => {
You can’t perform that action at this time.
0 commit comments