File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 26
26
*
27
27
*************************************************************************************************/
28
28
29
+ const DEBUG_MODE = false ;
30
+
29
31
function buildX509CertificateFromBytes ( certBytes ) {
30
32
const ByteArrayInputStream = Java . use ( 'java.io.ByteArrayInputStream' ) ;
31
33
const CertFactory = Java . use ( 'java.security.cert.CertificateFactory' ) ;
@@ -430,8 +432,26 @@ const PINNING_FIXES = {
430
432
} ;
431
433
}
432
434
}
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
+ }
433
454
]
434
-
435
455
} ;
436
456
437
457
const getJavaClassIfExists = ( clsName ) => {
You can’t perform that action at this time.
0 commit comments