2020-03-27 22:23:51 +00:00
|
|
|
.class public final Ld0/t$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-04-11 15:34:05 +00:00
|
|
|
.source "Handshake.kt"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-03-27 22:23:51 +00:00
|
|
|
value = Ld0/t;
|
2019-12-06 03:29:40 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "a"
|
|
|
|
.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
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public final a(Ljavax/net/ssl/SSLSession;)Ld0/t;
|
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-eqz p1, :cond_6
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getCipherSuite()Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-eqz v0, :cond_5
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
const-string v1, "SSL_NULL_WITH_NULL_NULL"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v1, v0}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result v1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-nez v1, :cond_4
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v1, Ld0/h;->t:Ld0/h$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v1, v0}, Ld0/h$b;->a(Ljava/lang/String;)Ld0/h;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-eqz v1, :cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
const-string v2, "NONE"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v2, v1}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result v2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-nez v2, :cond_2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v2, Ld0/b0;->j:Ld0/b0$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v2, v1}, Ld0/b0$a;->a(Ljava/lang/String;)Ld0/b0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-eqz v2, :cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
array-length v3, v2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
check-cast v2, [Ljava/security/cert/Certificate;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v2}, Ld0/c0/a;->a([Ljava/lang/Object;)Ljava/util/List;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
goto :goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:cond_0
|
|
|
|
sget-object v2, Lz/q/o;->d:Lz/q/o;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
goto :goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:catch_0
|
|
|
|
sget-object v2, Lz/q/o;->d:Lz/q/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:goto_0
|
|
|
|
new-instance v3, Ld0/t;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
if-eqz p1, :cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
array-length v4, p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1, v4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
check-cast p1, [Ljava/security/cert/Certificate;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Ld0/c0/a;->a([Ljava/lang/Object;)Ljava/util/List;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
goto :goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:cond_1
|
|
|
|
sget-object p1, Lz/q/o;->d:Lz/q/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:goto_1
|
|
|
|
new-instance v4, Ld0/t$a$a;
|
|
|
|
|
|
|
|
invoke-direct {v4, v2}, Ld0/t$a$a;-><init>(Ljava/util/List;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v3, v1, v0, p1, v4}, Ld0/t;-><init>(Ld0/b0;Ld0/h;Ljava/util/List;Lkotlin/jvm/functions/Function0;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
return-object v3
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/io/IOException;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
const-string v0, "tlsVersion == NONE"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
throw p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "tlsVersion == null"
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_4
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const-string v0, "cipherSuite == SSL_NULL_WITH_NULL_NULL"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
throw p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_5
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "cipherSuite == null"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string p1, "$this$handshake"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-12-06 03:29:40 +00:00
|
|
|
.end method
|