Instantly share code, notes, and snippets.

Embed
What would you like to do?
.class final Lcom/valvesoftware/android/steam/community/DevHttpsTrustManager$1;
.super Ljava/lang/Object;
.source "DevHttpsTrustManager.java"
# interfaces
.implements Ljavax/net/ssl/HostnameVerifier;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/valvesoftware/android/steam/community/DevHttpsTrustManager;->allowSslToValveDev()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
# direct methods
.method constructor <init>()V
.locals 0
.prologue
.line 23
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
.locals 1
.param p1, "arg0" # Ljava/lang/String;
.param p2, "arg1" # Ljavax/net/ssl/SSLSession;
.prologue
.line 27
if-eqz p1, :cond_1
const-string v0, "valvesoftware.com"
invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "valve.org"
invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_1
:cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment