diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-06-19 09:39:23 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-06-19 09:39:23 +0400 |
commit | 83462c7c8eecffa8138e47b3c2b7fdbfc001be5e (patch) | |
tree | 997d9b91bf65670bf340d121def28714d033b3a6 /core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java | |
parent | d26e1231ef42437fa1d52bd8a3529efa22bade9c (diff) |
Formatting
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java b/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java index 3a31c201..648323f2 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java @@ -12,7 +12,6 @@ import org.bouncycastle.crypto.Digest; */ class RecordStream { - private static int PLAINTEXT_LIMIT = (1 << 14); private static int COMPRESSED_LIMIT = PLAINTEXT_LIMIT + 1024; private static int CIPHERTEXT_LIMIT = COMPRESSED_LIMIT + 1024; @@ -126,7 +125,6 @@ class RecordStream public void readRecord() throws IOException { - short type = TlsUtils.readUint8(input); // TODO In earlier RFCs, it was "SHOULD ignore"; should this be version-dependent? @@ -165,7 +163,6 @@ class RecordStream protected byte[] decodeAndVerify(short type, InputStream input, int len) throws IOException { - checkLength(len, CIPHERTEXT_LIMIT, AlertDescription.record_overflow); byte[] buf = TlsUtils.readFully(len, input); @@ -198,7 +195,6 @@ class RecordStream protected void writeRecord(short type, byte[] plaintext, int plaintextOffset, int plaintextLength) throws IOException { - /* * RFC 5264 6. Implementations MUST NOT send record types not defined in this document * unless negotiated by some extension. @@ -332,7 +328,6 @@ class RecordStream private static void checkType(short type, short alertDescription) throws IOException { - switch (type) { case ContentType.change_cipher_spec: |