apkfuckery/com.discord/smali_classes2/c0/v$b.smali
2020-05-11 21:22:21 +02:00

108 lines
2.4 KiB
Smali

.class public final Lc0/v$b;
.super Ljava/lang/Object;
.source "OkHttpClient.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lc0/v;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lc0/k;",
">;"
}
.end annotation
sget-object v0, Lc0/v;->F:Ljava/util/List;
return-object v0
.end method
.method public final a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
.locals 3
:try_start_0
sget-object v0, Lc0/c0/g/f;->c:Lc0/c0/g/f$a;
invoke-virtual {v0}, Lc0/c0/g/f$a;->b()Lc0/c0/g/f;
move-result-object v0
invoke-virtual {v0}, Lc0/c0/g/f;->a()Ljavax/net/ssl/SSLContext;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [Ljavax/net/ssl/TrustManager;
const/4 v2, 0x0
aput-object p1, v1, v2
const/4 p1, 0x0
invoke-virtual {v0, p1, v1, p1}, 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 p1
const-string v0, "sslContext.socketFactory"
invoke-static {p1, v0}, Ly/v/b/j;->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 p1
:catch_0
move-exception p1
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "No System TLS"
invoke-direct {v0, v1, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final b()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lc0/w;",
">;"
}
.end annotation
sget-object v0, Lc0/v;->E:Ljava/util/List;
return-object v0
.end method