apkfuckery/com.discord/smali_classes2/a0/g$c.smali

148 lines
3.2 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final La0/g$c;
2020-03-14 02:12:46 +00:00
.super Lw/u/b/k;
2019-12-06 03:29:40 +00:00
.source "CertificatePinner.kt"
2020-03-14 02:12:46 +00:00
# interfaces
.implements Lkotlin/jvm/functions/Function0;
2019-12-06 03:29:40 +00:00
# annotations
2020-03-14 02:12:46 +00:00
.annotation system Ldalvik/annotation/EnclosingMethod;
value = La0/g;->a(Ljava/lang/String;Ljava/util/List;)V
2019-12-06 03:29:40 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
2020-03-14 02:12:46 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lw/u/b/k;",
"Lkotlin/jvm/functions/Function0<",
"Ljava/util/List<",
"+",
"Ljava/security/cert/X509Certificate;",
">;>;"
}
2019-12-06 03:29:40 +00:00
.end annotation
# instance fields
2020-03-14 02:12:46 +00:00
.field public final synthetic $hostname:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
.field public final synthetic $peerCertificates:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
.field public final synthetic this$0:La0/g;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
# direct methods
.method public constructor <init>(La0/g;Ljava/util/List;Ljava/lang/String;)V
.locals 0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
iput-object p1, p0, La0/g$c;->this$0:La0/g;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
iput-object p2, p0, La0/g$c;->$peerCertificates:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
iput-object p3, p0, La0/g$c;->$hostname:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/4 p1, 0x0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-direct {p0, p1}, Lw/u/b/k;-><init>(I)V
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-14 02:12:46 +00:00
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
2020-03-10 23:21:53 +00:00
2020-03-14 02:12:46 +00:00
invoke-virtual {p0}, La0/g$c;->invoke()Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
return-object v0
.end method
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
.method public final invoke()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/security/cert/X509Certificate;",
">;"
}
.end annotation
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
iget-object v0, p0, La0/g$c;->this$0:La0/g;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
iget-object v0, v0, La0/g;->b:La0/c0/i/c;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2020-03-14 02:12:46 +00:00
iget-object v1, p0, La0/g$c;->$peerCertificates:Ljava/util/List;
2020-03-10 23:21:53 +00:00
2020-03-14 02:12:46 +00:00
iget-object v2, p0, La0/g$c;->$hostname:Ljava/lang/String;
2020-03-10 23:21:53 +00:00
2020-03-14 02:12:46 +00:00
invoke-virtual {v0, v1, v2}, La0/c0/i/c;->a(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;
2020-03-10 23:21:53 +00:00
2020-03-14 02:12:46 +00:00
move-result-object v0
2020-03-10 23:21:53 +00:00
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
2020-03-14 02:12:46 +00:00
iget-object v0, p0, La0/g$c;->$peerCertificates:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-10 23:21:53 +00:00
:goto_0
2020-03-14 02:12:46 +00:00
new-instance v1, Ljava/util/ArrayList;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v2, 0xa
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-static {v0, v2}, Le/k/a/c/e/p/g;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v2
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
if-eqz v2, :cond_2
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result-object v2
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
check-cast v2, Ljava/security/cert/Certificate;
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_1
2020-03-14 02:12:46 +00:00
check-cast v2, Ljava/security/cert/X509Certificate;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
goto :goto_1
:cond_1
2020-03-14 02:12:46 +00:00
new-instance v0, Lw/l;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const-string v1, "null cannot be cast to non-null type java.security.cert.X509Certificate"
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-direct {v0, v1}, Lw/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
throw v0
2019-12-06 03:29:40 +00:00
:cond_2
2020-03-14 02:12:46 +00:00
return-object v1
2019-12-06 03:29:40 +00:00
.end method