apkfuckery/com.discord/smali_classes2/n0/v$a.smali

186 lines
4.1 KiB
Smali
Raw Normal View History

2020-07-23 01:06:17 +00:00
.class public final Ln0/v$a;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "Handshake.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-07-23 01:06:17 +00:00
value = Ln0/v;
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-05-17 12:40:10 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2020-07-23 01:06:17 +00:00
.method public final a(Ljavax/net/ssl/SSLSession;)Ln0/v;
2020-05-17 12:40:10 +00:00
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getCipherSuite()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_5
const-string v1, "SSL_NULL_WITH_NULL_NULL"
2020-07-25 00:57:58 +00:00
invoke-static {v1, v0}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
move-result v1
if-nez v1, :cond_4
2020-07-23 01:06:17 +00:00
sget-object v1, Ln0/j;->t:Ln0/j$b;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {v1, v0}, Ln0/j$b;->b(Ljava/lang/String;)Ln0/j;
2020-05-17 12:40:10 +00:00
move-result-object v0
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_3
const-string v2, "NONE"
2020-07-25 00:57:58 +00:00
invoke-static {v2, v1}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
move-result v2
if-nez v2, :cond_2
2020-07-23 01:06:17 +00:00
sget-object v2, Ln0/f0;->j:Ln0/f0$a;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {v2, v1}, Ln0/f0$a;->a(Ljava/lang/String;)Ln0/f0;
2020-05-17 12:40:10 +00:00
move-result-object v1
:try_start_0
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
move-result-object v2
if-eqz v2, :cond_0
array-length v3, v2
invoke-static {v2, v3}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v2
check-cast v2, [Ljava/security/cert/Certificate;
2020-07-23 01:06:17 +00:00
invoke-static {v2}, Ln0/g0/b;->o([Ljava/lang/Object;)Ljava/util/List;
2020-05-17 12:40:10 +00:00
move-result-object v2
goto :goto_0
:cond_0
2020-07-25 00:57:58 +00:00
sget-object v2, Lj0/i/n;->d:Lj0/i/n;
2020-05-17 12:40:10 +00:00
:try_end_0
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
2020-07-25 00:57:58 +00:00
sget-object v2, Lj0/i/n;->d:Lj0/i/n;
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-23 01:06:17 +00:00
new-instance v3, Ln0/v;
2020-05-17 12:40:10 +00:00
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
move-result-object p1
if-eqz p1, :cond_1
array-length v4, p1
invoke-static {p1, v4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/security/cert/Certificate;
2020-07-23 01:06:17 +00:00
invoke-static {p1}, Ln0/g0/b;->o([Ljava/lang/Object;)Ljava/util/List;
2020-05-17 12:40:10 +00:00
move-result-object p1
goto :goto_1
:cond_1
2020-07-25 00:57:58 +00:00
sget-object p1, Lj0/i/n;->d:Lj0/i/n;
2020-05-17 12:40:10 +00:00
:goto_1
2020-07-23 01:06:17 +00:00
new-instance v4, Ln0/v$a$a;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-direct {v4, v2}, Ln0/v$a$a;-><init>(Ljava/util/List;)V
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-direct {v3, v1, v0, p1, v4}, Ln0/v;-><init>(Ln0/f0;Ln0/j;Ljava/util/List;Lkotlin/jvm/functions/Function0;)V
2020-05-17 12:40:10 +00:00
return-object v3
:cond_2
new-instance p1, Ljava/io/IOException;
const-string v0, "tlsVersion == NONE"
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "tlsVersion == null"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
new-instance p1, Ljava/io/IOException;
const-string v0, "cipherSuite == SSL_NULL_WITH_NULL_NULL"
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "cipherSuite == null"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method