vmlinz / sandrop

Automatically exported from code.google.com/p/sandrop
1 stars 0 forks source link

log ssl handshake data #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
     private static TrustManager[] _trustAllCerts = new TrustManager[] {
        new X509TrustManager() {
            public X509Certificate[] getAcceptedIssuers() {
                return null;
            }
            public void checkClientTrusted(X509Certificate[] certs, String authType) {
                _logger.fine("trust manager checkClientTrusted authType:" + authType);
                if (certs != null){
                    for (int i = 0; i < certs.length; i++) {
                        _logger.fine("trust manager checkClientTrusted:" + certs[i]);
                    }
                }
            }
            public void checkServerTrusted(X509Certificate[] certs, String authType) {
                _logger.fine("trust manager checkClientTrusted authType:" + authType);
                if (certs != null){
                    for (int i = 0; i < certs.length; i++) {
                        _logger.fine("trust manager checkClientTrusted:" + certs[i]);
                    }
                }
            }
        }
    };

Original issue reported on code.google.com by supp.san...@gmail.com on 19 Jun 2012 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by supp.san...@gmail.com on 22 Jun 2012 at 4:26