1
BouncyCastle的org.bouncycastle.crypto.tls.TlsUtils
有以下几种方法BouncyCastle的tlsutils checkVersion
protected static void checkVersion(InputStream inputstream, TlsProtocolHandler tlsprotocolhandler)
throws IOException
{
int i = inputstream.read();
int j = inputstream.read();
if (i != 3 || j != 1)
{
tlsprotocolhandler.failWithError((short)2, (short)70);
}
}
protected static void checkVersion(byte abyte0[], TlsProtocolHandler tlsprotocolhandler)
throws IOException
{
if (abyte0[0] != 3 || abyte0[1] != 1)
{
tlsprotocolhandler.failWithError((short)2, (short)70);
}
}
什么是3 & 1正在这里检查?
什么是3&1的版本号? – user93353
好的,那是缺少的。我已经添加了更多信息。 – Kai
谢谢。你知道这是否意味着充气城堡不支持TLS 1.1和TLS 1.2? – user93353