Search in sources :

Example 1 with SSLChannelInfo

use of org.mozilla.jss.nss.SSLChannelInfo in project jss by dogtagpki.

the class TestRawSSL method TestSSLGetChannelInfo.

public static void TestSSLGetChannelInfo() throws Exception {
    PRFDProxy fd = PR.NewTCPSocket();
    assert (fd != null);
    SSLFDProxy ssl_fd = SSL.ImportFD(null, fd);
    assert (ssl_fd != null);
    SSLChannelInfo r = SSL.GetChannelInfo(ssl_fd);
    assert (r != null);
    assert (r.getProtocolVersion() == null);
    System.out.println(r.toString());
    assert (PR.Close(ssl_fd) == PR.SUCCESS);
}
Also used : PRFDProxy(org.mozilla.jss.nss.PRFDProxy) SSLFDProxy(org.mozilla.jss.nss.SSLFDProxy) SSLChannelInfo(org.mozilla.jss.nss.SSLChannelInfo)

Aggregations

PRFDProxy (org.mozilla.jss.nss.PRFDProxy)1 SSLChannelInfo (org.mozilla.jss.nss.SSLChannelInfo)1 SSLFDProxy (org.mozilla.jss.nss.SSLFDProxy)1