Skip to content

Instantly share code, notes, and snippets.

@veggiedefender
Created January 15, 2018 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veggiedefender/5dfafa9eb4f6cd941856993fcd7082f5 to your computer and use it in GitHub Desktop.
Save veggiedefender/5dfafa9eb4f6cd941856993fcd7082f5 to your computer and use it in GitHub Desktop.
.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