Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-06-22 08:23:50 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-22 08:23:50 +0400
commitf4785f88c92f3f15b4c7bc0cb74ca67726891cb7 (patch)
tree7bcfb1146f660c0627a952a1bee2f11eb540bd35 /core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
parentf184909c8b211b28f976d1fdf7b14bc72f29bb3e (diff)
Cleanup state after handshake
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java23
1 files changed, 19 insertions, 4 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
index fec28e95..95107fc5 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
@@ -20,13 +20,13 @@ public class TlsServerProtocol
protected TlsServer tlsServer = null;
protected TlsServerContextImpl tlsServerContext = null;
- protected int[] offeredCipherSuites;
- protected short[] offeredCompressionMethods;
- protected Hashtable clientExtensions;
+ protected int[] offeredCipherSuites = null;
+ protected short[] offeredCompressionMethods = null;
+ protected Hashtable clientExtensions = null;
protected int selectedCipherSuite;
protected short selectedCompressionMethod;
- protected Hashtable serverExtensions;
+ protected Hashtable serverExtensions = null;
protected TlsKeyExchange keyExchange = null;
protected TlsCredentials serverCredentials = null;
@@ -74,6 +74,21 @@ public class TlsServerProtocol
completeHandshake();
}
+ protected void cleanupHandshake()
+ {
+ super.cleanupHandshake();
+
+ this.offeredCipherSuites = null;
+ this.offeredCompressionMethods = null;
+ this.clientExtensions = null;
+ this.serverExtensions = null;
+ this.keyExchange = null;
+ this.serverCredentials = null;
+ this.certificateRequest = null;
+ this.clientCertificate = null;
+ this.certificateVerifyHash = null;
+ }
+
protected AbstractTlsContext getContext()
{
return tlsServerContext;