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 org.jsoup.helper.HttpConnection$Response.createConnection() calling method javax.net.ssl.HttpsURLConnection.setHostnameVerifier()


    private static java.net.HttpURLConnection createConnection(org.jsoup.Connection$Request p5)
    {
        java.net.HttpURLConnection v0_2;
        if (p5.proxy() != null) {
            v0_2 = p5.url().openConnection(p5.proxy());
        } else {
            v0_2 = p5.url().openConnection();
        }
        java.net.HttpURLConnection v0_3 = ((java.net.HttpURLConnection) v0_2);
        v0_3.setRequestMethod(p5.method().name());
        v0_3.setInstanceFollowRedirects(0);
        v0_3.setConnectTimeout(p5.timeout());
        v0_3.setReadTimeout((p5.timeout() / 2));
        if ((v0_3 instanceof javax.net.ssl.HttpsURLConnection)) {
            java.util.Map$Entry v1_7 = p5.sslSocketFactory();
            if (v1_7 == null) {
                if (!p5.validateTLSCertificates()) {
                    org.jsoup.helper.HttpConnection$Response.initUnSecureTSL();
                    java.util.Map$Entry v1_10 = ((javax.net.ssl.HttpsURLConnection) v0_3);
                    v1_10.setSSLSocketFactory(org.jsoup.helper.HttpConnection$Response.sslSocketFactory);
                    v1_10.setHostnameVerifier(org.jsoup.helper.HttpConnection$Response.getInsecureVerifier());
                }
            } else {
                ((javax.net.ssl.HttpsURLConnection) v0_3).setSSLSocketFactory(v1_7);
            }
        }
        if (p5.method().hasBody()) {
            v0_3.setDoOutput(1);
        }
        if (p5.cookies().size() > 0) {
            v0_3.addRequestProperty("Cookie", org.jsoup.helper.HttpConnection$Response.getRequestCookieString(p5));
        }
        java.util.Iterator v5_3 = p5.multiHeaders().entrySet().iterator();
        while (v5_3.hasNext()) {
            java.util.Map$Entry v1_20 = ((java.util.Map$Entry) v5_3.next());
            java.util.Iterator v2_7 = ((java.util.List) v1_20.getValue()).iterator();
            while (v2_7.hasNext()) {
                v0_3.addRequestProperty(((String) v1_20.getKey()), ((String) v2_7.next()));
            }
        }
        return v0_3;
    }