diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-09-09 09:21:40 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-09-09 09:21:40 +0400 |
commit | 48a96663701ab632c709dd633aa114a67c370770 (patch) | |
tree | d5dcd42b59203aff006978c36b1ebd57bea47139 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java | |
parent | c5c0280f00e43c5d8f3583c77fb408f0b044f5e4 (diff) |
All resetting of the discovered peer version
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java index b18f0abe..cba13d51 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSRecordLayer.java @@ -54,6 +54,13 @@ class DTLSRecordLayer return discoveredPeerVersion; } + ProtocolVersion resetDiscoveredPeerVersion() + { + ProtocolVersion result = discoveredPeerVersion; + discoveredPeerVersion = null; + return result; + } + void initPendingEpoch(TlsCipher pendingCipher) { if (pendingEpoch != null) |