diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-06-22 09:07:31 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-06-22 09:07:31 +0400 |
commit | d4fde10c1724fb641a019bebe8d50a4d254c3fda (patch) | |
tree | 12d5cc14431afb61dc60b973e7572ad613014b72 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java | |
parent | b1eaafbe96dd53b791d2b10204bd772f408f1835 (diff) |
Factor out a method for checking for empty extension_data
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java index 350c6c2b..e27580c1 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java @@ -49,21 +49,6 @@ public abstract class DTLSProtocol return maxFragmentLength; } - protected static boolean evaluateStatusRequestExtension(Hashtable serverExtensions, short alertDescription) - throws IOException - { - byte[] statusRequest = TlsUtils.getExtensionData(serverExtensions, TlsExtensionsUtils.EXT_status_request); - if (statusRequest == null) - { - return false; - } - if (statusRequest.length != 0) - { - throw new TlsFatalAlert(alertDescription); - } - return true; - } - protected static byte[] generateCertificate(Certificate certificate) throws IOException { |