213 lines
5 KiB
Smali
213 lines
5 KiB
Smali
.class public final Lokhttp3/u$a;
|
|
.super Ljava/lang/Object;
|
|
.source "Handshake.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/u;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.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/u$a;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static 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 p0, :cond_0
|
|
|
|
array-length v0, p0
|
|
|
|
invoke-static {p0, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Ljava/security/cert/Certificate;
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/b;->d([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-static {}, Lkotlin/a/m;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(Ljavax/net/ssl/SSLSession;)Lokhttp3/u;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$handshake"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0}, 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}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
sget-object v1, Lokhttp3/i;->bqO:Lokhttp3/i$a;
|
|
|
|
invoke-virtual {v1, v0}, Lokhttp3/i$a;->ds(Ljava/lang/String;)Lokhttp3/i;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p0}, 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}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
sget-object v2, Lokhttp3/ac;->btZ:Lokhttp3/ac$a;
|
|
|
|
invoke-static {v1}, Lokhttp3/ac$a;->dS(Ljava/lang/String;)Lokhttp3/ac;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lokhttp3/u$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 {}, Lkotlin/a/m;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_0
|
|
new-instance v3, Lokhttp3/u;
|
|
|
|
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lokhttp3/u$a;->a([Ljava/security/cert/Certificate;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v4, Lokhttp3/u$a$b;
|
|
|
|
invoke-direct {v4, v2}, Lokhttp3/u$a$b;-><init>(Ljava/util/List;)V
|
|
|
|
check-cast v4, Lkotlin/jvm/functions/Function0;
|
|
|
|
invoke-direct {v3, v1, v0, p0, v4}, Lokhttp3/u;-><init>(Lokhttp3/ac;Lokhttp3/i;Ljava/util/List;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-object v3
|
|
|
|
:cond_0
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
const-string v0, "tlsVersion == NONE"
|
|
|
|
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "tlsVersion == null"
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_2
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
const-string v0, "cipherSuite == SSL_NULL_WITH_NULL_NULL"
|
|
|
|
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "cipherSuite == null"
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|