diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-08 08:18:37 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-08 08:18:37 +0400 |
commit | 33cdae127fd0b6262dd840783e23fb47acf6af9e (patch) | |
tree | 8b5a12511a0e275283cb5314f6d8bb64a2ff7058 /core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java | |
parent | 308cc3f5e3525ef94bbf6ac5b522275f37577a68 (diff) |
For TLS 1.2, client and server track the hash algorithms mentioned in
the CertificateRequest (if any)
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.java | 5 |
1 files changed, 3 insertions, 2 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 194f1234..9f8494d3 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java @@ -161,9 +161,10 @@ public class TlsServerProtocol { this.keyExchange.validateCertificateRequest(certificateRequest); - // TODO Let the handshake hash know what digests it needs to be tracking for this - sendCertificateRequestMessage(certificateRequest); + + TlsUtils.trackHashAlgorithms(this.recordStream.getHandshakeHash(), + this.certificateRequest.getSupportedSignatureAlgorithms()); } } this.connection_state = CS_CERTIFICATE_REQUEST; |