apkfuckery/com.discord/smali_classes2/okhttp3/w$b.smali

89 lines
2.1 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/w$b;
.super Ljava/lang/Object;
.source "OkHttpClient.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/w;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(B)V
.locals 0
invoke-direct {p0}, Lokhttp3/w$b;-><init>()V
return-void
.end method
.method static a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
.locals 3
:try_start_0
sget-object v0, Lokhttp3/internal/g/f;->bzI:Lokhttp3/internal/g/f$a;
invoke-static {}, Lokhttp3/internal/g/f;->HP()Lokhttp3/internal/g/f;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/internal/g/f;->HK()Ljavax/net/ssl/SSLContext;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [Ljavax/net/ssl/TrustManager;
const/4 v2, 0x0
check-cast p0, Ljavax/net/ssl/TrustManager;
aput-object p0, v1, v2
const/4 p0, 0x0
invoke-virtual {v0, p0, v1, p0}, Ljavax/net/ssl/SSLContext;->init([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V
invoke-virtual {v0}, Ljavax/net/ssl/SSLContext;->getSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
move-result-object p0
const-string v0, "sslContext.socketFactory"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_0
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
new-instance v0, Ljava/lang/AssertionError;
check-cast p0, Ljava/lang/Throwable;
const-string v1, "No System TLS"
invoke-direct {v0, v1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method