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-16 13:04:20 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-16 13:04:20 +0400
commit5ceb3f7cafc53b1c39924bc0fb65ba47ab9aabe9 (patch)
tree042df12a84fea17ba4d99cc0d876a91529a05f58 /core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java
parent936746ff5335374f92b29db972c561b1f7ae5102 (diff)
Parse certificate_status messages at the client
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java
index 77ef0c57..40adfa15 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java
@@ -29,6 +29,7 @@ public class TlsClientProtocol
protected TlsKeyExchange keyExchange = null;
protected TlsAuthentication authentication = null;
+ protected CertificateStatus certificateStatus = null;
protected CertificateRequest certificateRequest = null;
private static SecureRandom createSecureRandom()
@@ -187,12 +188,12 @@ public class TlsClientProtocol
this.failWithError(AlertLevel.fatal, AlertDescription.unexpected_message);
}
- /*
- * TODO[RFC 3546] Parse the CertificateStatus message. We should bundle any
- * CertificateStatus message with the actual Certificate since the authentication
- * will want to use it.
- */
- Streams.drain(buf);
+ this.certificateStatus = CertificateStatus.parse(buf);
+
+ assertEmpty(buf);
+
+ // TODO[RFC 3546] Figure out how to provide this to the client/authentication.
+
this.connection_state = CS_CERTIFICATE_STATUS;
break;
default: