apkfuckery/com.discord/smali/okhttp3/internal/b/c.smali

1760 lines
42 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/internal/b/c;
.super Lokhttp3/internal/e/g$b;
.source "RealConnection.java"
# interfaces
.implements Lokhttp3/i;
# instance fields
2019-10-23 04:50:18 +00:00
.field private final brM:Lokhttp3/j;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
.field private bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
.field public bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
.field public final btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
.field public btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
.field public btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
.field btT:Lokhttp3/internal/e/g;
2019-08-30 20:04:20 +00:00
2019-10-23 04:50:18 +00:00
.field public btU:Lokio/BufferedSink;
2019-10-01 14:15:45 +00:00
2019-10-23 04:50:18 +00:00
.field public btV:Z
2019-10-01 14:15:45 +00:00
2019-10-23 04:50:18 +00:00
.field public btW:I
2019-10-01 14:15:45 +00:00
2019-10-23 04:50:18 +00:00
.field public btX:I
2019-10-01 14:15:45 +00:00
2019-10-23 04:50:18 +00:00
.field public final btY:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/ref/Reference<",
"Lokhttp3/internal/b/g;",
">;>;"
}
.end annotation
.end field
2019-10-23 04:50:18 +00:00
.field public btZ:J
2019-08-17 08:22:04 +00:00
2019-10-23 04:50:18 +00:00
.field public lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>(Lokhttp3/j;Lokhttp3/y;)V
.locals 2
invoke-direct {p0}, Lokhttp3/internal/e/g$b;-><init>()V
const/4 v0, 0x1
2019-10-23 04:50:18 +00:00
iput v0, p0, Lokhttp3/internal/b/c;->btX:I
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-10-23 04:50:18 +00:00
iput-object v0, p0, Lokhttp3/internal/b/c;->btY:Ljava/util/List;
2019-07-24 11:27:29 +00:00
const-wide v0, 0x7fffffffffffffffL
2019-10-23 04:50:18 +00:00
iput-wide v0, p0, Lokhttp3/internal/b/c;->btZ:J
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object p1, p0, Lokhttp3/internal/b/c;->brM:Lokhttp3/j;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object p2, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-10-09 23:16:36 +00:00
.method private R(II)V
2019-07-24 11:27:29 +00:00
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bnm:Ljava/net/Proxy;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v2
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v2, v3, :cond_1
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v2
sget-object v3, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;
if-ne v2, v3, :cond_0
goto :goto_0
:cond_0
new-instance v1, Ljava/net/Socket;
invoke-direct {v1, v0}, Ljava/net/Socket;-><init>(Ljava/net/Proxy;)V
goto :goto_1
:cond_1
:goto_0
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/a;->bnh:Ljavax/net/SocketFactory;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljavax/net/SocketFactory;->createSocket()Ljava/net/Socket;
move-result-object v1
:goto_1
2019-10-23 04:50:18 +00:00
iput-object v1, p0, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, p2}, Ljava/net/Socket;->setSoTimeout(I)V
:try_start_0
2019-10-23 04:50:18 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->GR()Lokhttp3/internal/g/f;
2019-07-24 11:27:29 +00:00
move-result-object p2
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsJ:Ljava/net/InetSocketAddress;
2019-07-24 11:27:29 +00:00
invoke-virtual {p2, v0, v1, p1}, Lokhttp3/internal/g/f;->a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
:try_end_0
.catch Ljava/net/ConnectException; {:try_start_0 .. :try_end_0} :catch_1
:try_start_1
2019-10-23 04:50:18 +00:00
iget-object p1, p0, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-static {p1}, Lokio/j;->c(Ljava/net/Socket;)Lokio/r;
move-result-object p1
invoke-static {p1}, Lokio/j;->b(Lokio/r;)Lokio/d;
move-result-object p1
2019-10-23 04:50:18 +00:00
iput-object p1, p0, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object p1, p0, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-static {p1}, Lokio/j;->b(Ljava/net/Socket;)Lokio/q;
move-result-object p1
invoke-static {p1}, Lokio/j;->b(Lokio/q;)Lokio/BufferedSink;
move-result-object p1
2019-10-23 04:50:18 +00:00
iput-object p1, p0, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
:try_end_1
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0
return-void
:catch_0
move-exception p1
invoke-virtual {p1}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String;
move-result-object p2
const-string v0, "throw with null exception"
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_2
return-void
:cond_2
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:catch_1
move-exception p1
new-instance p2, Ljava/net/ConnectException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Failed to connect to "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsJ:Ljava/net/InetSocketAddress;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p1}, Ljava/net/ConnectException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw p2
.end method
2019-10-09 23:16:36 +00:00
.method private dg(I)V
2019-07-24 11:27:29 +00:00
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/net/Socket;->setSoTimeout(I)V
new-instance v0, Lokhttp3/internal/e/g$a;
invoke-direct {v0}, Lokhttp3/internal/e/g$a;-><init>()V
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v2, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v2, v2, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v2, v2, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v2, v2, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v3, p0, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v4, p0, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1, v2, v3, v4}, Lokhttp3/internal/e/g$a;->a(Ljava/net/Socket;Ljava/lang/String;Lokio/d;Lokio/BufferedSink;)Lokhttp3/internal/e/g$a;
move-result-object v0
2019-10-23 04:50:18 +00:00
iput-object p0, v0, Lokhttp3/internal/e/g$a;->bvF:Lokhttp3/internal/e/g$b;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput p1, v0, Lokhttp3/internal/e/g$a;->bwc:I
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokhttp3/internal/e/g$a;->Gv()Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-10-23 04:50:18 +00:00
iput-object p1, p0, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object p1, p0, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {p1}, Lokhttp3/internal/e/g;->Gt()V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-10-23 04:50:18 +00:00
.method public final FZ()Z
2019-07-24 11:27:29 +00:00
.locals 1
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
2019-10-23 04:50:18 +00:00
.method public final Fc()Lokhttp3/u;
.locals 1
iget-object v0, p0, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
return-object v0
.end method
2019-10-09 23:16:36 +00:00
.method public final X(Z)Z
2019-10-07 23:23:22 +00:00
.locals 4
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v0}, Ljava/net/Socket;->isClosed()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_5
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v0}, Ljava/net/Socket;->isInputShutdown()Z
move-result v0
if-nez v0, :cond_5
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v0}, Ljava/net/Socket;->isOutputShutdown()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-10-07 23:23:22 +00:00
const/4 v2, 0x1
if-eqz v0, :cond_2
invoke-virtual {v0}, Lokhttp3/internal/e/g;->isShutdown()Z
move-result p1
if-nez p1, :cond_1
return v2
:cond_1
return v1
:cond_2
if-eqz p1, :cond_4
:try_start_0
2019-10-23 04:50:18 +00:00
iget-object p1, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {p1}, Ljava/net/Socket;->getSoTimeout()I
move-result p1
:try_end_0
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v0, v2}, Ljava/net/Socket;->setSoTimeout(I)V
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-10-07 23:23:22 +00:00
2019-10-23 04:50:18 +00:00
invoke-interface {v0}, Lokio/d;->Hg()Z
2019-10-07 23:23:22 +00:00
move-result v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v0, :cond_3
:try_start_2
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V
return v1
:cond_3
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V
return v2
:catchall_0
move-exception v0
2019-10-23 04:50:18 +00:00
iget-object v3, p0, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-10-07 23:23:22 +00:00
invoke-virtual {v3, p1}, Ljava/net/Socket;->setSoTimeout(I)V
throw v0
:try_end_2
.catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
:catch_0
return v1
:catch_1
:cond_4
return v2
:cond_5
:goto_0
return v1
.end method
2019-07-24 11:27:29 +00:00
.method public final a(IIIIZLokhttp3/e;Lokhttp3/p;)V
.locals 16
move-object/from16 v1, p0
move/from16 v2, p4
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1c
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/a;->bnk:Ljava/util/List;
2019-07-24 11:27:29 +00:00
new-instance v3, Lokhttp3/internal/b/b;
invoke-direct {v3, v0}, Lokhttp3/internal/b/b;-><init>(Ljava/util/List;)V
2019-10-23 04:50:18 +00:00
iget-object v4, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v4, v4, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
iget-object v4, v4, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-nez v4, :cond_2
2019-10-23 04:50:18 +00:00
sget-object v4, Lokhttp3/k;->bqp:Lokhttp3/k;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->GR()Lokhttp3/internal/g/f;
2019-07-24 11:27:29 +00:00
move-result-object v4
2019-10-09 23:16:36 +00:00
invoke-virtual {v4, v0}, Lokhttp3/internal/g/f;->ee(Ljava/lang/String;)Z
2019-07-24 11:27:29 +00:00
move-result v4
if-eqz v4, :cond_0
goto :goto_0
:cond_0
new-instance v2, Lokhttp3/internal/b/e;
new-instance v3, Ljava/net/UnknownServiceException;
new-instance v4, Ljava/lang/StringBuilder;
const-string v5, "CLEARTEXT communication to "
invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " not permitted by network security policy"
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v3, v0}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
invoke-direct {v2, v3}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v2
:cond_1
new-instance v0, Lokhttp3/internal/b/e;
new-instance v2, Ljava/net/UnknownServiceException;
const-string v3, "CLEARTEXT communication not enabled for client"
invoke-direct {v2, v3}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
invoke-direct {v0, v2}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v0
:cond_2
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/a;->bnj:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v4, Lokhttp3/u;->brZ:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1b
:goto_0
const/4 v4, 0x0
move-object v5, v4
:goto_1
const/4 v6, 0x0
const/4 v7, 0x1
:try_start_0
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokhttp3/y;->FR()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_7
new-instance v0, Lokhttp3/w$a;
invoke-direct {v0}, Lokhttp3/w$a;-><init>()V
2019-10-23 04:50:18 +00:00
iget-object v8, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v8, v8, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v8, v8, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v8}, Lokhttp3/w$a;->b(Lokhttp3/s;)Lokhttp3/w$a;
move-result-object v0
const-string v8, "CONNECT"
invoke-virtual {v0, v8, v4}, Lokhttp3/w$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/w$a;
move-result-object v0
const-string v8, "Host"
2019-10-23 04:50:18 +00:00
iget-object v9, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v9, v9, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v9, v9, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
invoke-static {v9, v7}, Lokhttp3/internal/c;->a(Lokhttp3/s;Z)Ljava/lang/String;
move-result-object v9
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->ao(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-07-24 11:27:29 +00:00
move-result-object v0
const-string v8, "Proxy-Connection"
const-string v9, "Keep-Alive"
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->ao(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-07-24 11:27:29 +00:00
move-result-object v0
const-string v8, "User-Agent"
const-string v9, "okhttp/3.12.1"
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->ao(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokhttp3/w$a;->FL()Lokhttp3/w;
2019-07-24 11:27:29 +00:00
move-result-object v0
new-instance v8, Lokhttp3/Response$a;
invoke-direct {v8}, Lokhttp3/Response$a;-><init>()V
2019-10-23 04:50:18 +00:00
iput-object v0, v8, Lokhttp3/Response$a;->bsv:Lokhttp3/w;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v9, Lokhttp3/u;->brW:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v9, v8, Lokhttp3/Response$a;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
const/16 v9, 0x197
iput v9, v8, Lokhttp3/Response$a;->code:I
const-string v10, "Preemptive Authenticate"
iput-object v10, v8, Lokhttp3/Response$a;->message:Ljava/lang/String;
2019-10-23 04:50:18 +00:00
sget-object v10, Lokhttp3/internal/c;->bsS:Lokhttp3/x;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v10, v8, Lokhttp3/Response$a;->bsy:Lokhttp3/x;
2019-07-24 11:27:29 +00:00
const-wide/16 v10, -0x1
2019-10-23 04:50:18 +00:00
iput-wide v10, v8, Lokhttp3/Response$a;->bsC:J
2019-08-14 23:59:34 +00:00
2019-10-23 04:50:18 +00:00
iput-wide v10, v8, Lokhttp3/Response$a;->bsD:J
2019-08-30 20:04:20 +00:00
2019-07-24 11:27:29 +00:00
const-string v12, "Proxy-Authenticate"
const-string v13, "OkHttp-Preemptive"
2019-10-23 04:50:18 +00:00
iget-object v14, v8, Lokhttp3/Response$a;->bso:Lokhttp3/Headers$a;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v14, v12, v13}, Lokhttp3/Headers$a;->al(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {v8}, Lokhttp3/Response$a;->FN()Lokhttp3/Response;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v8, v0, Lokhttp3/w;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-direct/range {p0 .. p2}, Lokhttp3/internal/b/c;->R(II)V
2019-07-24 11:27:29 +00:00
new-instance v12, Ljava/lang/StringBuilder;
const-string v13, "CONNECT "
invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {v8, v7}, Lokhttp3/internal/c;->a(Lokhttp3/s;Z)Ljava/lang/String;
move-result-object v8
invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v8, " HTTP/1.1"
invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
new-instance v12, Lokhttp3/internal/d/a;
2019-10-23 04:50:18 +00:00
iget-object v13, v1, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v14, v1, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
invoke-direct {v12, v4, v4, v13, v14}, Lokhttp3/internal/d/a;-><init>(Lokhttp3/t;Lokhttp3/internal/b/g;Lokio/d;Lokio/BufferedSink;)V
2019-10-23 04:50:18 +00:00
iget-object v13, v1, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
invoke-interface {v13}, Lokio/d;->timeout()Lokio/s;
move-result-object v13
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
move/from16 v14, p2
move-object/from16 p7, v5
int-to-long v4, v14
:try_start_1
sget-object v15, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v13, v4, v5, v15}, Lokio/s;->d(JLjava/util/concurrent/TimeUnit;)Lokio/s;
2019-10-23 04:50:18 +00:00
iget-object v4, v1, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
invoke-interface {v4}, Lokio/BufferedSink;->timeout()Lokio/s;
move-result-object v4
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
move/from16 v5, p3
int-to-long v9, v5
:try_start_2
sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v4, v9, v10, v11}, Lokio/s;->d(JLjava/util/concurrent/TimeUnit;)Lokio/s;
2019-10-23 04:50:18 +00:00
iget-object v4, v0, Lokhttp3/w;->brC:Lokhttp3/Headers;
2019-07-24 11:27:29 +00:00
invoke-virtual {v12, v4, v8}, Lokhttp3/internal/d/a;->a(Lokhttp3/Headers;Ljava/lang/String;)V
2019-10-23 04:50:18 +00:00
invoke-virtual {v12}, Lokhttp3/internal/d/a;->Gi()V
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v12, v6}, Lokhttp3/internal/d/a;->Y(Z)Lokhttp3/Response$a;
2019-07-24 11:27:29 +00:00
move-result-object v4
2019-10-23 04:50:18 +00:00
iput-object v0, v4, Lokhttp3/Response$a;->bsv:Lokhttp3/w;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {v4}, Lokhttp3/Response$a;->FN()Lokhttp3/Response;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-17 08:22:04 +00:00
invoke-static {v0}, Lokhttp3/internal/c/e;->f(Lokhttp3/Response;)J
2019-07-24 11:27:29 +00:00
move-result-wide v8
const-wide/16 v10, -0x1
cmp-long v4, v8, v10
if-nez v4, :cond_3
const-wide/16 v8, 0x0
:cond_3
2019-10-09 23:16:36 +00:00
invoke-virtual {v12, v8, v9}, Lokhttp3/internal/d/a;->ar(J)Lokio/r;
2019-07-24 11:27:29 +00:00
move-result-object v4
const v8, 0x7fffffff
sget-object v9, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {v4, v8, v9}, Lokhttp3/internal/c;->a(Lokio/r;ILjava/util/concurrent/TimeUnit;)Z
invoke-interface {v4}, Lokio/r;->close()V
iget v4, v0, Lokhttp3/Response;->code:I
const/16 v8, 0xc8
if-eq v4, v8, :cond_5
const/16 v8, 0x197
if-eq v4, v8, :cond_4
new-instance v4, Ljava/io/IOException;
new-instance v8, Ljava/lang/StringBuilder;
const-string v9, "Unexpected response code for CONNECT: "
invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v0, v0, Lokhttp3/Response;->code:I
invoke-virtual {v8, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v4, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v4
:cond_4
new-instance v0, Ljava/io/IOException;
const-string v4, "Failed to authenticate with proxy"
invoke-direct {v0, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_5
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-interface {v0}, Lokio/d;->Hd()Lokio/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokio/c;->Hg()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_6
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-interface {v0}, Lokio/BufferedSink;->Hd()Lokio/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokio/c;->Hg()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_6
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_8
goto/16 :goto_4
:cond_6
new-instance v0, Ljava/io/IOException;
const-string v4, "TLS tunnel buffered too many bytes!"
invoke-direct {v0, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catch_0
move-exception v0
goto/16 :goto_8
:cond_7
move/from16 v14, p2
move-object/from16 p7, v5
move/from16 v5, p3
2019-10-09 23:16:36 +00:00
invoke-direct/range {p0 .. p2}, Lokhttp3/internal/b/c;->R(II)V
2019-07-24 11:27:29 +00:00
:cond_8
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
iget-object v0, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-nez v0, :cond_a
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/a;->bnj:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v4, Lokhttp3/u;->brZ:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_9
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v0, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/u;->brZ:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v0, v1, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-direct {v1, v2}, Lokhttp3/internal/b/c;->dg(I)V
2019-07-24 11:27:29 +00:00
goto/16 :goto_4
:cond_9
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v0, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/u;->brW:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v0, v1, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
goto/16 :goto_4
:cond_a
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
iget-object v4, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
:try_start_3
2019-10-23 04:50:18 +00:00
iget-object v8, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v9, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v9, v9, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v10, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
iget v10, v10, Lokhttp3/s;->port:I
invoke-virtual {v4, v8, v9, v10, v7}, Ljavax/net/ssl/SSLSocketFactory;->createSocket(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;
move-result-object v4
check-cast v4, Ljavax/net/ssl/SSLSocket;
:try_end_3
.catch Ljava/lang/AssertionError; {:try_start_3 .. :try_end_3} :catch_2
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:try_start_4
invoke-virtual {v3, v4}, Lokhttp3/internal/b/b;->c(Ljavax/net/ssl/SSLSocket;)Lokhttp3/k;
move-result-object v8
2019-10-23 04:50:18 +00:00
iget-boolean v9, v8, Lokhttp3/k;->bqr:Z
2019-07-24 11:27:29 +00:00
if-eqz v9, :cond_b
2019-10-23 04:50:18 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->GR()Lokhttp3/internal/g/f;
2019-07-24 11:27:29 +00:00
move-result-object v9
2019-10-23 04:50:18 +00:00
iget-object v10, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v10, v10, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v11, v0, Lokhttp3/a;->bnj:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-virtual {v9, v4, v10, v11}, Lokhttp3/internal/g/f;->a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
:cond_b
invoke-virtual {v4}, Ljavax/net/ssl/SSLSocket;->startHandshake()V
invoke-virtual {v4}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;
move-result-object v9
invoke-static {v9}, Lokhttp3/r;->a(Ljavax/net/ssl/SSLSession;)Lokhttp3/r;
move-result-object v10
2019-10-23 04:50:18 +00:00
iget-object v11, v0, Lokhttp3/a;->bnn:Ljavax/net/ssl/HostnameVerifier;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v12, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v12, v12, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-interface {v11, v12, v9}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
move-result v9
if-eqz v9, :cond_13
2019-10-23 04:50:18 +00:00
iget-object v9, v0, Lokhttp3/a;->bno:Lokhttp3/g;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v11, v10, Lokhttp3/r;->bqV:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {v9, v0, v11}, Lokhttp3/g;->f(Ljava/lang/String;Ljava/util/List;)V
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-boolean v0, v8, Lokhttp3/k;->bqr:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_c
2019-10-23 04:50:18 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->GR()Lokhttp3/internal/g/f;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-virtual {v0, v4}, Lokhttp3/internal/g/f;->e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
move-result-object v0
goto :goto_2
:cond_c
const/4 v0, 0x0
:goto_2
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v8, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-static {v8}, Lokio/j;->c(Ljava/net/Socket;)Lokio/r;
move-result-object v8
invoke-static {v8}, Lokio/j;->b(Lokio/r;)Lokio/d;
move-result-object v8
2019-10-23 04:50:18 +00:00
iput-object v8, v1, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v8, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-static {v8}, Lokio/j;->b(Ljava/net/Socket;)Lokio/q;
move-result-object v8
invoke-static {v8}, Lokio/j;->b(Lokio/q;)Lokio/BufferedSink;
move-result-object v8
2019-10-23 04:50:18 +00:00
iput-object v8, v1, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v10, v1, Lokhttp3/internal/b/c;->bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_d
2019-10-09 23:16:36 +00:00
invoke-static {v0}, Lokhttp3/u;->dM(Ljava/lang/String;)Lokhttp3/u;
2019-07-24 11:27:29 +00:00
move-result-object v0
goto :goto_3
:cond_d
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/u;->brW:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
:goto_3
2019-10-23 04:50:18 +00:00
iput-object v0, v1, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
:try_end_4
.catch Ljava/lang/AssertionError; {:try_start_4 .. :try_end_4} :catch_1
.catchall {:try_start_4 .. :try_end_4} :catchall_2
if-eqz v4, :cond_e
:try_start_5
2019-10-23 04:50:18 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->GR()Lokhttp3/internal/g/f;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-virtual {v0, v4}, Lokhttp3/internal/g/f;->f(Ljavax/net/ssl/SSLSocket;)V
:cond_e
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v4, Lokhttp3/u;->brY:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
if-ne v0, v4, :cond_f
2019-10-09 23:16:36 +00:00
invoke-direct {v1, v2}, Lokhttp3/internal/b/c;->dg(I)V
2019-07-24 11:27:29 +00:00
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
:cond_f
:goto_4
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokhttp3/y;->FR()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_11
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_10
goto :goto_5
:cond_10
new-instance v0, Ljava/net/ProtocolException;
const-string v2, "Too many tunnel connections attempted: 21"
invoke-direct {v0, v2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
new-instance v2, Lokhttp3/internal/b/e;
invoke-direct {v2, v0}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v2
:cond_11
:goto_5
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_12
2019-10-23 04:50:18 +00:00
iget-object v2, v1, Lokhttp3/internal/b/c;->brM:Lokhttp3/j;
2019-07-24 11:27:29 +00:00
monitor-enter v2
:try_start_6
2019-10-23 04:50:18 +00:00
iget-object v0, v1, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
invoke-virtual {v0}, Lokhttp3/internal/e/g;->Gr()I
2019-07-24 11:27:29 +00:00
move-result v0
2019-10-23 04:50:18 +00:00
iput v0, v1, Lokhttp3/internal/b/c;->btX:I
2019-07-24 11:27:29 +00:00
monitor-exit v2
return-void
:catchall_0
move-exception v0
monitor-exit v2
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
throw v0
:cond_12
return-void
:cond_13
:try_start_7
2019-10-23 04:50:18 +00:00
iget-object v8, v10, Lokhttp3/r;->bqV:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v8, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v8
check-cast v8, Ljava/security/cert/X509Certificate;
new-instance v9, Ljavax/net/ssl/SSLPeerUnverifiedException;
new-instance v10, Ljava/lang/StringBuilder;
const-string v11, "Hostname "
invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " not verified:\n certificate: "
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v8}, Lokhttp3/g;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\n DN: "
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v8}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
move-result-object v0
invoke-interface {v0}, Ljava/security/Principal;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\n subjectAltNames: "
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v8}, Lokhttp3/internal/i/d;->f(Ljava/security/cert/X509Certificate;)Ljava/util/List;
move-result-object v0
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v9, v0}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
throw v9
:try_end_7
.catch Ljava/lang/AssertionError; {:try_start_7 .. :try_end_7} :catch_1
.catchall {:try_start_7 .. :try_end_7} :catchall_2
:catch_1
move-exception v0
goto :goto_6
:catchall_1
move-exception v0
const/4 v4, 0x0
goto :goto_7
:catch_2
move-exception v0
const/4 v4, 0x0
:goto_6
:try_start_8
invoke-static {v0}, Lokhttp3/internal/c;->a(Ljava/lang/AssertionError;)Z
move-result v8
if-eqz v8, :cond_14
new-instance v8, Ljava/io/IOException;
invoke-direct {v8, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw v8
:cond_14
throw v0
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_2
:catchall_2
move-exception v0
:goto_7
if-eqz v4, :cond_15
:try_start_9
2019-10-23 04:50:18 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->GR()Lokhttp3/internal/g/f;
2019-07-24 11:27:29 +00:00
move-result-object v8
invoke-virtual {v8, v4}, Lokhttp3/internal/g/f;->f(Ljavax/net/ssl/SSLSocket;)V
:cond_15
invoke-static {v4}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V
throw v0
:try_end_9
.catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_3
:catch_3
move-exception v0
goto :goto_9
:catch_4
move-exception v0
move/from16 v14, p2
move-object/from16 p7, v5
:goto_8
move/from16 v5, p3
:goto_9
2019-10-23 04:50:18 +00:00
iget-object v4, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-static {v4}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V
2019-10-23 04:50:18 +00:00
iget-object v4, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
invoke-static {v4}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V
const/4 v4, 0x0
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->btS:Ljava/net/Socket;
2019-08-22 06:13:42 +00:00
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->btR:Ljava/net/Socket;
2019-08-22 18:54:10 +00:00
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->lZ:Lokio/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->btU:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iput-object v4, v1, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
if-nez p7, :cond_16
new-instance v8, Lokhttp3/internal/b/e;
invoke-direct {v8, v0}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
goto :goto_a
:cond_16
move-object/from16 v8, p7
iget-object v9, v8, Lokhttp3/internal/b/e;->firstException:Ljava/io/IOException;
2019-10-09 23:16:36 +00:00
invoke-static {v9, v0}, Lokhttp3/internal/c;->d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
iput-object v0, v8, Lokhttp3/internal/b/e;->lastException:Ljava/io/IOException;
:goto_a
if-eqz p5, :cond_1a
2019-10-23 04:50:18 +00:00
iput-boolean v7, v3, Lokhttp3/internal/b/b;->btP:Z
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-boolean v9, v3, Lokhttp3/internal/b/b;->btO:Z
2019-07-24 11:27:29 +00:00
if-eqz v9, :cond_19
instance-of v9, v0, Ljava/net/ProtocolException;
if-nez v9, :cond_19
instance-of v9, v0, Ljava/io/InterruptedIOException;
if-nez v9, :cond_19
instance-of v9, v0, Ljavax/net/ssl/SSLHandshakeException;
if-eqz v9, :cond_17
invoke-virtual {v0}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable;
move-result-object v10
instance-of v10, v10, Ljava/security/cert/CertificateException;
if-nez v10, :cond_19
:cond_17
instance-of v10, v0, Ljavax/net/ssl/SSLPeerUnverifiedException;
if-nez v10, :cond_19
if-nez v9, :cond_18
instance-of v9, v0, Ljavax/net/ssl/SSLProtocolException;
if-nez v9, :cond_18
instance-of v0, v0, Ljavax/net/ssl/SSLException;
if-eqz v0, :cond_19
:cond_18
const/4 v6, 0x1
:cond_19
if-eqz v6, :cond_1a
move-object v5, v8
goto/16 :goto_1
:cond_1a
throw v8
:cond_1b
new-instance v0, Lokhttp3/internal/b/e;
new-instance v2, Ljava/net/UnknownServiceException;
const-string v3, "H2_PRIOR_KNOWLEDGE cannot be used with HTTPS"
invoke-direct {v2, v3}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
invoke-direct {v0, v2}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v0
:cond_1c
new-instance v0, Ljava/lang/IllegalStateException;
const-string v2, "already connected"
invoke-direct {v0, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
goto :goto_c
:goto_b
throw v0
:goto_c
goto :goto_b
.end method
.method public final a(Lokhttp3/internal/e/g;)V
.locals 1
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->brM:Lokhttp3/j;
2019-07-24 11:27:29 +00:00
monitor-enter v0
:try_start_0
2019-10-23 04:50:18 +00:00
invoke-virtual {p1}, Lokhttp3/internal/e/g;->Gr()I
2019-07-24 11:27:29 +00:00
move-result p1
2019-10-23 04:50:18 +00:00
iput p1, p0, Lokhttp3/internal/b/c;->btX:I
2019-07-24 11:27:29 +00:00
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public final a(Lokhttp3/internal/e/i;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/internal/e/b;->buO:Lokhttp3/internal/e/b;
2019-07-24 11:27:29 +00:00
invoke-virtual {p1, v0}, Lokhttp3/internal/e/i;->b(Lokhttp3/internal/e/b;)V
return-void
.end method
.method public final a(Lokhttp3/a;Lokhttp3/y;)Z
.locals 4
.param p2 # Lokhttp3/y;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btY:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
2019-10-23 04:50:18 +00:00
iget v1, p0, Lokhttp3/internal/b/c;->btX:I
2019-07-24 11:27:29 +00:00
const/4 v2, 0x0
if-ge v0, v1, :cond_a
2019-10-23 04:50:18 +00:00
iget-boolean v0, p0, Lokhttp3/internal/b/c;->btV:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
goto :goto_0
:cond_0
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/internal/a;->bsQ:Lokhttp3/internal/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/a;->a(Lokhttp3/a;Lokhttp3/a;)Z
move-result v0
if-nez v0, :cond_1
return v2
:cond_1
2019-10-23 04:50:18 +00:00
iget-object v0, p1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_2
return v1
:cond_2
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btT:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_3
return v2
:cond_3
if-nez p2, :cond_4
return v2
:cond_4
2019-10-23 04:50:18 +00:00
iget-object v0, p2, Lokhttp3/y;->bnm:Ljava/net/Proxy;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v0, v3, :cond_5
return v2
:cond_5
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bnm:Ljava/net/Proxy;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v0, v3, :cond_6
return v2
:cond_6
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/y;->bsJ:Ljava/net/InetSocketAddress;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v3, p2, Lokhttp3/y;->bsJ:Ljava/net/InetSocketAddress;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v3}, Ljava/net/InetSocketAddress;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_7
return v2
:cond_7
2019-10-23 04:50:18 +00:00
iget-object p2, p2, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object p2, p2, Lokhttp3/a;->bnn:Ljavax/net/ssl/HostnameVerifier;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/internal/i/d;->bxy:Lokhttp3/internal/i/d;
2019-07-24 11:27:29 +00:00
if-eq p2, v0, :cond_8
return v2
:cond_8
2019-10-23 04:50:18 +00:00
iget-object p2, p1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p2}, Lokhttp3/internal/b/c;->c(Lokhttp3/s;)Z
move-result p2
if-nez p2, :cond_9
return v2
:cond_9
:try_start_0
2019-10-23 04:50:18 +00:00
iget-object p2, p1, Lokhttp3/a;->bno:Lokhttp3/g;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object p1, p1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object p1, p1, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v0, v0, Lokhttp3/r;->bqV:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p2, p1, v0}, Lokhttp3/g;->f(Ljava/lang/String;Ljava/util/List;)V
2019-07-24 11:27:29 +00:00
:try_end_0
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
return v1
:catch_0
:cond_a
:goto_0
return v2
.end method
.method public final c(Lokhttp3/s;)Z
.locals 4
iget v0, p1, Lokhttp3/s;->port:I
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
iget v1, v1, Lokhttp3/s;->port:I
const/4 v2, 0x0
if-eq v0, v1, :cond_0
return v2
:cond_0
2019-10-23 04:50:18 +00:00
iget-object v0, p1, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-nez v0, :cond_2
2019-10-23 04:50:18 +00:00
iget-object v0, p0, Lokhttp3/internal/b/c;->bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_1
2019-10-23 04:50:18 +00:00
sget-object v0, Lokhttp3/internal/i/d;->bxy:Lokhttp3/internal/i/d;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object p1, p1, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v3, p0, Lokhttp3/internal/b/c;->bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v3, v3, Lokhttp3/r;->bqV:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/security/cert/X509Certificate;
invoke-virtual {v0, p1, v3}, Lokhttp3/internal/i/d;->a(Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z
move-result p1
if-eqz p1, :cond_1
return v1
:cond_1
return v2
:cond_2
return v1
.end method
.method public final toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Connection{"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/s;->brb:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ":"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsI:Lokhttp3/a;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/a;->bnf:Lokhttp3/s;
2019-07-24 11:27:29 +00:00
iget v1, v1, Lokhttp3/s;->port:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", proxy="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bnm:Ljava/net/Proxy;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " hostAddress="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->btQ:Lokhttp3/y;
2019-07-24 11:27:29 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/y;->bsJ:Ljava/net/InetSocketAddress;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " cipherSuite="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->bsx:Lokhttp3/r;
2019-07-24 11:27:29 +00:00
if-eqz v1, :cond_0
2019-10-23 04:50:18 +00:00
iget-object v1, v1, Lokhttp3/r;->bqU:Lokhttp3/h;
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
const-string v1, "none"
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " protocol="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lokhttp3/internal/b/c;->bsw:Lokhttp3/u;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
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