926 lines
20 KiB
Smali
926 lines
20 KiB
Smali
.class public final Lokhttp3/l;
|
|
.super Ljava/lang/Object;
|
|
.source "ConnectionSpec.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/l$a;,
|
|
Lokhttp3/l$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final bqU:[Lokhttp3/i;
|
|
|
|
.field private static final bqV:[Lokhttp3/i;
|
|
|
|
.field public static final bqW:Lokhttp3/l;
|
|
|
|
.field public static final bqX:Lokhttp3/l;
|
|
|
|
.field public static final bqY:Lokhttp3/l;
|
|
|
|
.field public static final bqZ:Lokhttp3/l;
|
|
|
|
.field public static final bra:Lokhttp3/l$b;
|
|
|
|
|
|
# instance fields
|
|
.field final bqQ:Z
|
|
|
|
.field public final bqR:Z
|
|
|
|
.field private final bqS:[Ljava/lang/String;
|
|
|
|
.field private final bqT:[Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 12
|
|
|
|
new-instance v0, Lokhttp3/l$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/l$b;-><init>(B)V
|
|
|
|
sput-object v0, Lokhttp3/l;->bra:Lokhttp3/l$b;
|
|
|
|
const/16 v0, 0x9
|
|
|
|
new-array v2, v0, [Lokhttp3/i;
|
|
|
|
sget-object v3, Lokhttp3/i;->bqJ:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
sget-object v3, Lokhttp3/i;->bqK:Lokhttp3/i;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
sget-object v3, Lokhttp3/i;->bqL:Lokhttp3/i;
|
|
|
|
const/4 v5, 0x2
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
sget-object v3, Lokhttp3/i;->bqv:Lokhttp3/i;
|
|
|
|
const/4 v6, 0x3
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
sget-object v3, Lokhttp3/i;->bqz:Lokhttp3/i;
|
|
|
|
const/4 v7, 0x4
|
|
|
|
aput-object v3, v2, v7
|
|
|
|
sget-object v3, Lokhttp3/i;->bqw:Lokhttp3/i;
|
|
|
|
const/4 v8, 0x5
|
|
|
|
aput-object v3, v2, v8
|
|
|
|
sget-object v3, Lokhttp3/i;->bqA:Lokhttp3/i;
|
|
|
|
const/4 v9, 0x6
|
|
|
|
aput-object v3, v2, v9
|
|
|
|
sget-object v3, Lokhttp3/i;->bqG:Lokhttp3/i;
|
|
|
|
const/4 v10, 0x7
|
|
|
|
aput-object v3, v2, v10
|
|
|
|
sget-object v3, Lokhttp3/i;->bqF:Lokhttp3/i;
|
|
|
|
const/16 v11, 0x8
|
|
|
|
aput-object v3, v2, v11
|
|
|
|
sput-object v2, Lokhttp3/l;->bqU:[Lokhttp3/i;
|
|
|
|
const/16 v2, 0x10
|
|
|
|
new-array v2, v2, [Lokhttp3/i;
|
|
|
|
sget-object v3, Lokhttp3/i;->bqJ:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
sget-object v3, Lokhttp3/i;->bqK:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
sget-object v3, Lokhttp3/i;->bqL:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
sget-object v3, Lokhttp3/i;->bqv:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
sget-object v3, Lokhttp3/i;->bqz:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v7
|
|
|
|
sget-object v3, Lokhttp3/i;->bqw:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v8
|
|
|
|
sget-object v3, Lokhttp3/i;->bqA:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v9
|
|
|
|
sget-object v3, Lokhttp3/i;->bqG:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v10
|
|
|
|
sget-object v3, Lokhttp3/i;->bqF:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v11
|
|
|
|
sget-object v3, Lokhttp3/i;->bqg:Lokhttp3/i;
|
|
|
|
aput-object v3, v2, v0
|
|
|
|
sget-object v0, Lokhttp3/i;->bqh:Lokhttp3/i;
|
|
|
|
const/16 v3, 0xa
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sget-object v0, Lokhttp3/i;->bpE:Lokhttp3/i;
|
|
|
|
const/16 v3, 0xb
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sget-object v0, Lokhttp3/i;->bpF:Lokhttp3/i;
|
|
|
|
const/16 v3, 0xc
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sget-object v0, Lokhttp3/i;->bpc:Lokhttp3/i;
|
|
|
|
const/16 v3, 0xd
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sget-object v0, Lokhttp3/i;->bpg:Lokhttp3/i;
|
|
|
|
const/16 v3, 0xe
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sget-object v0, Lokhttp3/i;->boG:Lokhttp3/i;
|
|
|
|
const/16 v3, 0xf
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sput-object v2, Lokhttp3/l;->bqV:[Lokhttp3/i;
|
|
|
|
new-instance v0, Lokhttp3/l$a;
|
|
|
|
invoke-direct {v0, v4}, Lokhttp3/l$a;-><init>(Z)V
|
|
|
|
sget-object v2, Lokhttp3/l;->bqU:[Lokhttp3/i;
|
|
|
|
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, [Lokhttp3/i;
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/l$a;->a([Lokhttp3/i;)Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v2, v5, [Lokhttp3/ac;
|
|
|
|
sget-object v3, Lokhttp3/ac;->btT:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
sget-object v3, Lokhttp3/ac;->btU:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/l$a;->a([Lokhttp3/ac;)Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fq()Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fr()Lokhttp3/l;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/l;->bqW:Lokhttp3/l;
|
|
|
|
new-instance v0, Lokhttp3/l$a;
|
|
|
|
invoke-direct {v0, v4}, Lokhttp3/l$a;-><init>(Z)V
|
|
|
|
sget-object v2, Lokhttp3/l;->bqV:[Lokhttp3/i;
|
|
|
|
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, [Lokhttp3/i;
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/l$a;->a([Lokhttp3/i;)Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v2, v5, [Lokhttp3/ac;
|
|
|
|
sget-object v3, Lokhttp3/ac;->btT:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
sget-object v3, Lokhttp3/ac;->btU:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/l$a;->a([Lokhttp3/ac;)Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fq()Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fr()Lokhttp3/l;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/l;->bqX:Lokhttp3/l;
|
|
|
|
new-instance v0, Lokhttp3/l$a;
|
|
|
|
invoke-direct {v0, v4}, Lokhttp3/l$a;-><init>(Z)V
|
|
|
|
sget-object v2, Lokhttp3/l;->bqV:[Lokhttp3/i;
|
|
|
|
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, [Lokhttp3/i;
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/l$a;->a([Lokhttp3/i;)Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v2, v7, [Lokhttp3/ac;
|
|
|
|
sget-object v3, Lokhttp3/ac;->btT:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
sget-object v3, Lokhttp3/ac;->btU:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
sget-object v3, Lokhttp3/ac;->btV:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
sget-object v3, Lokhttp3/ac;->btW:Lokhttp3/ac;
|
|
|
|
aput-object v3, v2, v6
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/l$a;->a([Lokhttp3/ac;)Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fq()Lokhttp3/l$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fr()Lokhttp3/l;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/l;->bqY:Lokhttp3/l;
|
|
|
|
new-instance v0, Lokhttp3/l$a;
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/l$a;-><init>(Z)V
|
|
|
|
invoke-virtual {v0}, Lokhttp3/l$a;->Fr()Lokhttp3/l;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/l;->bqZ:Lokhttp3/l;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ZZ[Ljava/lang/String;[Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p1, p0, Lokhttp3/l;->bqQ:Z
|
|
|
|
iput-boolean p2, p0, Lokhttp3/l;->bqR:Z
|
|
|
|
iput-object p3, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
iput-object p4, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private Fo()Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/i;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
array-length v2, v0
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_0
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
sget-object v5, Lokhttp3/i;->bqO:Lokhttp3/i$a;
|
|
|
|
invoke-virtual {v5, v4}, Lokhttp3/i$a;->ds(Ljava/lang/String;)Lokhttp3/i;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
check-cast v1, Ljava/lang/Iterable;
|
|
|
|
invoke-static {v1}, Lkotlin/a/m;->toList(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private Fp()Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/ac;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
array-length v2, v0
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_0
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
sget-object v5, Lokhttp3/ac;->btZ:Lokhttp3/ac$a;
|
|
|
|
invoke-static {v4}, Lokhttp3/ac$a;->dS(Ljava/lang/String;)Lokhttp3/ac;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
check-cast v1, Ljava/lang/Iterable;
|
|
|
|
invoke-static {v1}, Lkotlin/a/m;->toList(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lokhttp3/l;)[Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic b(Lokhttp3/l;)[Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljavax/net/ssl/SSLSocket;Z)V
|
|
.locals 5
|
|
|
|
const-string v0, "sslSocket"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "sslSocket.enabledCipherSuites"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
sget-object v2, Lokhttp3/i;->bqO:Lokhttp3/i$a;
|
|
|
|
invoke-static {}, Lokhttp3/i;->Fl()Ljava/util/Comparator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1, v2}, Lokhttp3/internal/b;->a([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "sslSocket.enabledProtocols"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v2, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
invoke-static {}, Lkotlin/b/a;->naturalOrder()Ljava/util/Comparator;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v1, v2, v3}, Lokhttp3/internal/b;->a([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getSupportedCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "supportedCipherSuites"
|
|
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lokhttp3/i;->bqO:Lokhttp3/i$a;
|
|
|
|
invoke-static {}, Lokhttp3/i;->Fl()Ljava/util/Comparator;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "TLS_FALLBACK_SCSV"
|
|
|
|
invoke-static {v2, v4, v3}, Lokhttp3/internal/b;->a([Ljava/lang/String;Ljava/lang/String;Ljava/util/Comparator;)I
|
|
|
|
move-result v3
|
|
|
|
const-string v4, "cipherSuitesIntersection"
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
const/4 p2, -0x1
|
|
|
|
if-eq v3, p2, :cond_2
|
|
|
|
invoke-static {v0, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
aget-object p2, v2, v3
|
|
|
|
const-string v2, "supportedCipherSuites[indexOfFallbackScsv]"
|
|
|
|
invoke-static {p2, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, p2}, Lokhttp3/internal/b;->c([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_2
|
|
new-instance p2, Lokhttp3/l$a;
|
|
|
|
invoke-direct {p2, p0}, Lokhttp3/l$a;-><init>(Lokhttp3/l;)V
|
|
|
|
invoke-static {v0, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
array-length v2, v0
|
|
|
|
invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, v0}, Lokhttp3/l$a;->c([Ljava/lang/String;)Lokhttp3/l$a;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, "tlsVersionsIntersection"
|
|
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
array-length v0, v1
|
|
|
|
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, v0}, Lokhttp3/l$a;->d([Ljava/lang/String;)Lokhttp3/l$a;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lokhttp3/l$a;->Fr()Lokhttp3/l;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p2}, Lokhttp3/l;->Fp()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p2, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
invoke-direct {p2}, Lokhttp3/l;->Fo()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object p2, p2, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, p2}, Ljavax/net/ssl/SSLSocket;->setEnabledCipherSuites([Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Ljavax/net/ssl/SSLSocket;)Z
|
|
.locals 4
|
|
|
|
const-string v0, "socket"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-boolean v0, p0, Lokhttp3/l;->bqQ:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {}, Lkotlin/b/a;->naturalOrder()Ljava/util/Comparator;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v0, v2, v3}, Lokhttp3/internal/b;->b([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v2, Lokhttp3/i;->bqO:Lokhttp3/i$a;
|
|
|
|
invoke-static {}, Lokhttp3/i;->Fl()Ljava/util/Comparator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, p1, v2}, Lokhttp3/internal/b;->b([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
instance-of v0, p1, Lokhttp3/l;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/l;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
iget-boolean v0, p0, Lokhttp3/l;->bqQ:Z
|
|
|
|
check-cast p1, Lokhttp3/l;
|
|
|
|
iget-boolean v3, p1, Lokhttp3/l;->bqQ:Z
|
|
|
|
if-eq v0, v3, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v0, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
invoke-static {v0, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
invoke-static {v0, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
iget-boolean v0, p0, Lokhttp3/l;->bqR:Z
|
|
|
|
iget-boolean p1, p1, Lokhttp3/l;->bqR:Z
|
|
|
|
if-eq v0, p1, :cond_5
|
|
|
|
return v1
|
|
|
|
:cond_5
|
|
return v2
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lokhttp3/l;->bqQ:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lokhttp3/l;->bqS:[Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const/16 v2, 0x20f
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
mul-int/lit8 v2, v2, 0x1f
|
|
|
|
iget-object v0, p0, Lokhttp3/l;->bqT:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v1
|
|
|
|
:cond_1
|
|
add-int/2addr v2, v1
|
|
|
|
mul-int/lit8 v2, v2, 0x1f
|
|
|
|
iget-boolean v0, p0, Lokhttp3/l;->bqR:Z
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/16 v2, 0x11
|
|
|
|
:goto_1
|
|
return v2
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lokhttp3/l;->bqQ:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "ConnectionSpec()"
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "ConnectionSpec(cipherSuites="
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lokhttp3/l;->Fo()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "[all enabled]"
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Objects;->toString(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", tlsVersions="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lokhttp3/l;->Fp()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Objects;->toString(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", supportsTlsExtensions="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lokhttp3/l;->bqR:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x29
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|