OLD | NEW |
(Empty) | |
| 1 diff --git a/third_party/tlslite/tlslite/tlsrecordlayer.py b/third_party/tlslite
/tlslite/tlsrecordlayer.py |
| 2 index ff08cbf..fb85224 100755 |
| 3 --- a/third_party/tlslite/tlslite/tlsrecordlayer.py |
| 4 +++ b/third_party/tlslite/tlslite/tlsrecordlayer.py |
| 5 @@ -590,6 +590,9 @@ class TLSRecordLayer(object): |
| 6 currentLength = len(b) + len(macBytes) + 1 |
| 7 blockLength = self._writeState.encContext.block_size |
| 8 paddingLength = blockLength-(currentLength % blockLength) |
| 9 + #SSL3 requires minimal padding. (TLS doesn't care.) |
| 10 + if paddingLength == blockLength: |
| 11 + paddingLength = 0 |
| 12 |
| 13 paddingBytes = bytearray([paddingLength] * (paddingLength+1)) |
| 14 if self.fault == Fault.badPadding: |
OLD | NEW |