Lines Matching refs:version
70 * type(1) + version(2) + length(2) + MAX_CIPHERED_DATA_LENGTH
76 // protocol version of the connection
77 private byte[] version;
135 ? 6 // type + version + length + 1 byte of data
146 return 5+data_size; // type + version + length + data_size
166 record_size -= 5; // - (type + version + length + data_size)
225 return packetize(content_type, version, ciphered_fragment);
228 private byte[] packetize(byte type, byte[] version, byte[] fragment) {
231 if (version != null) {
232 buff[1] = version[0];
233 buff[2] = version[1];
257 pendingConnectionState = ((version == null) || (version[1] == 1))
280 ContentType.CHANGE_CIPHER_SPEC, version[0],
281 version[1], 0, 1, 1
285 packetize(ContentType.CHANGE_CIPHER_SPEC, version,
307 * ProtocolVersion version;
357 if (version != null) {
358 if ((in.read() != version[0])
359 || (in.read() != version[1])) {
366 in.skip(2); // just skip the version number
443 * Sets up the SSL version used in this connection.
445 * it becomes known which protocol version will be used.
450 this.version = ver;
459 version = null;