apkfuckery/com.discord/smali/okhttp3/r.smali

305 lines
6.6 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/r;
.super Ljava/lang/Object;
.source "Handshake.java"
# instance fields
2019-08-01 02:26:13 +00:00
.field private final btr:Lokhttp3/z;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
.field public final bts:Lokhttp3/h;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
.field public final btt:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
.end field
2019-08-01 02:26:13 +00:00
.field private final btu:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lokhttp3/z;Lokhttp3/h;Ljava/util/List;Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/z;",
"Lokhttp3/h;",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-08-01 02:26:13 +00:00
iput-object p1, p0, Lokhttp3/r;->btr:Lokhttp3/z;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iput-object p2, p0, Lokhttp3/r;->bts:Lokhttp3/h;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iput-object p3, p0, Lokhttp3/r;->btt:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iput-object p4, p0, Lokhttp3/r;->btu:Ljava/util/List;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public static a(Ljavax/net/ssl/SSLSession;)Lokhttp3/r;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-interface {p0}, 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"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_4
invoke-static {v0}, Lokhttp3/h;->dY(Ljava/lang/String;)Lokhttp3/h;
move-result-object v0
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_3
const-string v2, "NONE"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_2
invoke-static {v1}, Lokhttp3/z;->eq(Ljava/lang/String;)Lokhttp3/z;
move-result-object v1
:try_start_0
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
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
const/4 v2, 0x0
:goto_0
if-eqz v2, :cond_0
invoke-static {v2}, Lokhttp3/internal/c;->r([Ljava/lang/Object;)Ljava/util/List;
move-result-object v2
goto :goto_1
:cond_0
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v2
:goto_1
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
move-result-object p0
if-eqz p0, :cond_1
invoke-static {p0}, Lokhttp3/internal/c;->r([Ljava/lang/Object;)Ljava/util/List;
move-result-object p0
goto :goto_2
:cond_1
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p0
:goto_2
new-instance v3, Lokhttp3/r;
invoke-direct {v3, v1, v0, v2, p0}, Lokhttp3/r;-><init>(Lokhttp3/z;Lokhttp3/h;Ljava/util/List;Ljava/util/List;)V
return-object v3
:cond_2
new-instance p0, Ljava/io/IOException;
const-string v0, "tlsVersion == NONE"
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p0
:cond_3
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "tlsVersion == null"
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
:cond_4
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
throw p0
:cond_5
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "cipherSuite == null"
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public final equals(Ljava/lang/Object;)Z
.locals 3
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
instance-of v0, p1, Lokhttp3/r;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
check-cast p1, Lokhttp3/r;
2019-08-01 02:26:13 +00:00
iget-object v0, p0, Lokhttp3/r;->btr:Lokhttp3/z;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iget-object v2, p1, Lokhttp3/r;->btr:Lokhttp3/z;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v2}, Lokhttp3/z;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
2019-08-01 02:26:13 +00:00
iget-object v0, p0, Lokhttp3/r;->bts:Lokhttp3/h;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iget-object v2, p1, Lokhttp3/r;->bts:Lokhttp3/h;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
2019-08-01 02:26:13 +00:00
iget-object v0, p0, Lokhttp3/r;->btt:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iget-object v2, p1, Lokhttp3/r;->btt:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
2019-08-01 02:26:13 +00:00
iget-object v0, p0, Lokhttp3/r;->btu:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-08-01 02:26:13 +00:00
iget-object p1, p1, Lokhttp3/r;->btu:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, p1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_1
const/4 p1, 0x1
return p1
:cond_1
return v1
.end method
.method public final hashCode()I
.locals 2
2019-08-01 02:26:13 +00:00
iget-object v0, p0, Lokhttp3/r;->btr:Lokhttp3/z;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lokhttp3/z;->hashCode()I
move-result v0
add-int/lit16 v0, v0, 0x20f
mul-int/lit8 v0, v0, 0x1f
2019-08-01 02:26:13 +00:00
iget-object v1, p0, Lokhttp3/r;->bts:Lokhttp3/h;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
2019-08-01 02:26:13 +00:00
iget-object v1, p0, Lokhttp3/r;->btt:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v1}, Ljava/util/List;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
2019-08-01 02:26:13 +00:00
iget-object v1, p0, Lokhttp3/r;->btu:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v1}, Ljava/util/List;->hashCode()I
move-result v1
add-int/2addr v0, v1
return v0
.end method