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.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.connect() calling method okhttp3.OkHttpClient$Builder.hostnameVerifier()


    public io.socket.client.Socket connect(String p10, io.socket.client.Socket p11, android.content.Context p12)
    {
        this.url = p10;
        this.socket = p11;
        com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.getX509TrustManager();
        if (p11 != null) {
            if (!p11.connected()) {
                p11.connect();
            }
        } else {
            try {
                int v5_16;
                com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.sslContext = javax.net.ssl.SSLContext.getInstance("TLS");
                com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.sslContext.init(0, com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.trustAllCerts, 0);
                String[] v4 = new String[1];
                v4[0] = "websocket";
                okhttp3.OkHttpClient v1 = new okhttp3.OkHttpClient$Builder().hostnameVerifier(this.getHostNameVerifier()).sslSocketFactory(com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.sslContext.getSocketFactory(), com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketConnectionTest.x509TrustManager).build();
                io.socket.client.IO$Options v2_1 = new io.socket.client.IO$Options();
                v2_1.callFactory = v1;
                v2_1.webSocketFactory = v1;
                v2_1.secure = 1;
            } catch (Exception v0) {
                com.cloudsinc.welltekmobile.native_v2_welltek.utils.Logs.error("LoginSocketConnectionTest", new StringBuilder().append("").append(v0.getMessage()).toString());
                p11.on("connect", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("connect", p12, p11));
                p11.on("disconnect", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("disconnect", p12, p11));
                p11.on("LoginResponce", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("LoginResponce", p12, p11));
                p11.on("LOGIN", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("LOGIN", p12, p11));
                p11.on("error", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("error", p12, p11));
                p11.on("authenticated", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("authenticated", p12, p11));
                p11.on("serverToClientIDBIncSync", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("serverToClientIDBIncSync", p12, p11));
                p11.on("ErrorFromServer", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("ErrorFromServer", p12, p11));
                p11.on("message", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("message", p12, p11));
                p11.on("error", new com.cloudsinc.welltekmobile.native_v2_welltek.fragments.SocketConnectionTest.LoginSocketListener("error", p12, p11));
                p11.connect();
            }
            if (!p10.contains("loginauth")) {
                v5_16 = "/sync";
            } else {
                v5_16 = "/loginauth";
            }
            v2_1.path = v5_16;
            v2_1.transports = v4;
            v2_1.forceNew = 1;
            v2_1.reconnection = 1;
            v2_1.reconnectionDelay = 2000;
            v2_1.reconnectionDelayMax = 5000;
            v2_1.timeout = 50000;
            p11 = io.socket.client.IO.socket(p10, v2_1);
        }
        return p11;
    }