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);
}
Aggregations