Search in sources :

Example 1 with SSLPreliminaryChannelInfo

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);
}
Also used : PRFDProxy(org.mozilla.jss.nss.PRFDProxy) SSLFDProxy(org.mozilla.jss.nss.SSLFDProxy) SSLPreliminaryChannelInfo(org.mozilla.jss.nss.SSLPreliminaryChannelInfo)

Aggregations

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