Info Call to SSL/TLS API

Description

List of all files shipped in the application.

Recommendation

This entry is informative, no recommendations applicable.

References
Technical details

Method com.g.a.c.a() calling method javax.net.ssl.HttpsURLConnection.setHostnameVerifier()


    public boolean a(java.util.Map p8)
    {
        try {
            com.g.a.j.a("Inside postSQSMessage");
        } catch (StringBuilder v8_3) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v8_3);
            com.g.a.j.a("Exception : MF_WV_0730");
            return 0;
        }
        if (Integer.parseInt(((String) p8.get("sdk_3party_server1_response_code"))) == 0) {
            p8 = new com.g.a.i(this.a).a(p8);
            if (Integer.parseInt(((String) p8.get("sdk_3party_server1_response_code"))) == 0) {
                com.g.a.j.a("Unable to connect to the 3party Server");
                return 0;
            }
        }
        String v1_23 = new org.json.JSONObject();
        String v2_8 = new com.g.a.d(this.a).b("mf_is_install", "true").equalsIgnoreCase("true");
        StringBuilder v8_6 = p8.entrySet().iterator();
        while (v8_6.hasNext()) {
            int v3_1 = ((java.util.Map$Entry) v8_6.next());
            v1_23.put(((String) v3_1.getKey()), v3_1.getValue());
        }
        if (this.a()) {
            StringBuilder v8_10 = ((javax.net.ssl.HttpsURLConnection) new java.net.URL("https://sqs.us-west-2.amazonaws.com/632228229419/mf_sdk_datapoints_queue?").openConnection());
            v8_10.setRequestMethod("POST");
            v8_10.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
            v8_10.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            v8_10.setHostnameVerifier(new ark>com.g.a.cark>$1(this));
            v8_10.setDoOutput(1);
            java.io.DataOutputStream v4_6 = new java.io.DataOutputStream(v8_10.getOutputStream());
            String v1_29 = android.util.Base64.encodeToString(v1_23.toString().getBytes("UTF-8"), 0);
            String v5_3 = this.a.getPackageName();
            if (v2_8 == null) {
                com.g.a.j.a("It is an update");
                StringBuilder v8_13 = new StringBuilder();
                v8_13.append("Action=SendMessage&MessageBody=");
                v8_13.append(v1_29);
                v8_13.append("&MessageAttribute.1.Name=mf_sdk_version");
                v8_13.append("&MessageAttribute.1.Value.StringValue=2.7.1");
                v8_13.append("&MessageAttribute.1.Value.DataType=String");
                v8_13.append("&MessageAttribute.2.Name=mf_is_install");
                v8_13.append("&MessageAttribute.2.Value.StringValue=0");
                v8_13.append("&MessageAttribute.2.Value.DataType=String");
                v8_13.append("&MessageAttribute.3.Name=installed_app");
                v8_13.append("&MessageAttribute.3.Value.StringValue=");
                v8_13.append(v5_3);
                v8_13.append("&MessageAttribute.3.Value.DataType=String");
                v8_13.toString();
                return 1;
            } else {
                com.g.a.j.a("Fresh install");
                String v2_2 = new StringBuilder();
                v2_2.append("Action=SendMessage&MessageBody=");
                v2_2.append(v1_29);
                v2_2.append("&MessageAttribute.1.Name=mf_sdk_version");
                v2_2.append("&MessageAttribute.1.Value.StringValue=2.7.1");
                v2_2.append("&MessageAttribute.1.Value.DataType=String");
                v2_2.append("&MessageAttribute.2.Name=mf_is_install");
                v2_2.append("&MessageAttribute.2.Value.StringValue=1");
                v2_2.append("&MessageAttribute.2.Value.DataType=String");
                v2_2.append("&MessageAttribute.3.Name=installed_app");
                v2_2.append("&MessageAttribute.3.Value.StringValue=");
                v2_2.append(v5_3);
                v2_2.append("&MessageAttribute.3.Value.DataType=String");
                v4_6.writeBytes(v2_2.toString());
                StringBuilder v8_1 = v8_10.getResponseCode();
                String v1_15 = new StringBuilder();
                v1_15.append("MFilterit Response : ");
                v1_15.append(v8_1);
                com.g.a.j.a(v1_15.toString());
                if (v8_1 != 200) {
                    return 0;
                } else {
                    return 1;
                }
            }
        } else {
            return 0;
        }
    }

Method com.google.api.client.http.javanet.NetHttpTransport.buildRequest() calling method javax.net.ssl.HttpsURLConnection.setHostnameVerifier()


    protected com.google.api.client.http.javanet.NetHttpRequest buildRequest(String p5, String p6)
    {
        javax.net.ssl.SSLSocketFactory v0_0 = this.supportsMethod(p5);
        Object[] v2_1 = new Object[1];
        v2_1[0] = p5;
        com.google.api.client.util.Preconditions.checkArgument(v0_0, "HTTP method %s not supported", v2_1);
        java.net.HttpURLConnection v6_2 = this.connectionFactory.openConnection(new java.net.URL(p6));
        v6_2.setRequestMethod(p5);
        if ((v6_2 instanceof javax.net.ssl.HttpsURLConnection)) {
            com.google.api.client.http.javanet.NetHttpRequest v5_3 = ((javax.net.ssl.HttpsURLConnection) v6_2);
            if (this.hostnameVerifier != null) {
                v5_3.setHostnameVerifier(this.hostnameVerifier);
            }
            if (this.sslSocketFactory != null) {
                v5_3.setSSLSocketFactory(this.sslSocketFactory);
            }
        }
        return new com.google.api.client.http.javanet.NetHttpRequest(v6_2);
    }

Method com.comscore.utils.Connectivity.a() calling method org.apache.http.conn.ssl.SSLSocketFactory.setHostnameVerifier()


    private static org.apache.http.client.HttpClient a()
    {
        try {
            org.apache.http.impl.client.DefaultHttpClient v0_0 = org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory();
            v0_0.setHostnameVerifier(org.apache.http.conn.ssl.SSLSocketFactory.STRICT_HOSTNAME_VERIFIER);
            String v1_3 = new org.apache.http.params.BasicHttpParams();
            v1_3.setBooleanParameter("http.protocol.expect-continue", 0);
            org.apache.http.impl.client.DefaultHttpClient v2_0 = new org.apache.http.conn.scheme.SchemeRegistry();
            v2_0.register(new org.apache.http.conn.scheme.Scheme("http", org.apache.http.conn.scheme.PlainSocketFactory.getSocketFactory(), 80));
            v2_0.register(new org.apache.http.conn.scheme.Scheme("https", v0_0, 443));
            return new org.apache.http.impl.client.DefaultHttpClient(new org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager(v1_3, v2_0), v1_3);
        } catch (org.apache.http.impl.client.DefaultHttpClient v0_3) {
            com.comscore.utils.CSLog.e("comScore", v0_3.getMessage());
            return new org.apache.http.impl.client.DefaultHttpClient();
        }
    }

Method com.google.api.client.http.apache.ApacheHttpTransport$Builder.doNotValidateCertificate() calling method org.apache.http.conn.ssl.SSLSocketFactory.setHostnameVerifier()


    public com.google.api.client.http.apache.ApacheHttpTransport$Builder doNotValidateCertificate()
    {
        this.socketFactory = new com.google.api.client.http.apache.SSLSocketFactoryExtension(com.google.api.client.util.SslUtils.trustAllSSLContext());
        this.socketFactory.setHostnameVerifier(org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
        return this;
    }