196 lines
4.6 KiB
Smali
196 lines
4.6 KiB
Smali
.class public final La0/t$a;
|
|
.super Ljava/lang/Object;
|
|
.source "Handshake.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = La0/t;
|
|
.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
|
|
.method public final a(Ljavax/net/ssl/SSLSession;)La0/t;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$handshake"
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getCipherSuite()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-string v1, "SSL_NULL_WITH_NULL_NULL"
|
|
|
|
invoke-static {v1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
sget-object v1, La0/h;->t:La0/h$b;
|
|
|
|
invoke-virtual {v1, v0}, La0/h$b;->a(Ljava/lang/String;)La0/h;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v2, "NONE"
|
|
|
|
invoke-static {v2, v1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
sget-object v2, La0/b0;->j:La0/b0$a;
|
|
|
|
invoke-virtual {v2, v1}, La0/b0$a;->a(Ljava/lang/String;)La0/b0;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_0
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v2}, La0/t$a;->a([Ljava/security/cert/Certificate;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
invoke-static {}, Le/k/a/c/e/p/g;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_0
|
|
new-instance v3, La0/t;
|
|
|
|
invoke-interface {p1}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, La0/t$a;->a([Ljava/security/cert/Certificate;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v4, La0/t$a$a;
|
|
|
|
invoke-direct {v4, v2}, La0/t$a$a;-><init>(Ljava/util/List;)V
|
|
|
|
invoke-direct {v3, v1, v0, p1, v4}, La0/t;-><init>(La0/b0;La0/h;Ljava/util/List;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-object v3
|
|
|
|
:cond_0
|
|
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_1
|
|
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_2
|
|
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_3
|
|
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
|
|
|
|
.method public final a([Ljava/security/cert/Certificate;)Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"([",
|
|
"Ljava/security/cert/Certificate;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Ljava/security/cert/Certificate;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
array-length v0, p1
|
|
|
|
invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/security/cert/Certificate;
|
|
|
|
invoke-static {p1}, La0/c0/a;->a([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p1, Lw/q/o;->d:Lw/q/o;
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|