use of org.mozilla.jss.nss.SSLPreliminaryChannelInfo in project jss by dogtagpki.
the class TestRawSSL method TestSSLGetPreliminaryChannelInfo.
public static void TestSSLGetPreliminaryChannelInfo() throws Exception {
PRFDProxy fd = PR.NewTCPSocket();
assert (fd != null);
SSLFDProxy ssl_fd = SSL.ImportFD(null, fd);
assert (ssl_fd != null);
SSLPreliminaryChannelInfo r = SSL.GetPreliminaryChannelInfo(ssl_fd);
assert (r != null);
assert (r.haveProtocolVersion() == false);
assert (r.haveCipherSuite() == false);
assert (r.haveZeroRttCipherSuite() == false);
assert (r.havePeerAuth() == false);
System.out.println(r.toString());
assert (PR.Close(ssl_fd) == PR.SUCCESS);
}
Aggregations