OpenSslEngine remove unecessary rejectRemoteInitiatedRenegation call

Motivation:
OpenSslEngine calls rejectRemoteInitiatedRenegation in a scenario where the number of handshakes has not been observed to change. The number of handshakes has only been observed to change after readPlaintextData is called.

Modifications:
- Remove the call to rejectRemoteInitiatedRenegation before calls to readPlaintextData

Result:
Less code.
This commit is contained in:
Scott Mitchell 2016-06-02 23:03:58 -07:00
parent 6fb5b14ef5
commit f7cf00cb5f

View File

@ -686,8 +686,6 @@ public final class OpenSslEngine extends SSLEngine {
} while (srcsOffset < srcsEndOffset);
}
rejectRemoteInitiatedRenegation();
// Number of produced bytes
int bytesProduced = 0;