summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-10 16:35:20 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-10 16:35:20 +0700
commit45fc4e6a632828759cd5c1cc688ebfde1091e47c (patch)
tree347a5f524fceb96a97904a145868485dffd93d91
parentDTLS: refactoring around extended_master_secret (diff)
downloadBouncyCastle.NET-ed25519-45fc4e6a632828759cd5c1cc688ebfde1091e47c.tar.xz
DTLS: Fixed server support for client_certificate_type extension.
-rw-r--r--crypto/Readme.html1
-rw-r--r--crypto/src/tls/DtlsServerProtocol.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/crypto/Readme.html b/crypto/Readme.html
index d79baafb1..27745b848 100644
--- a/crypto/Readme.html
+++ b/crypto/Readme.html
@@ -335,6 +335,7 @@
             <li>AsconEngine: Fixed a buffering bug when decrypting across multiple ProcessBytes calls (ascon128a unaffected).</li>
             <li>DTLS: Fixed an exception during server handshake when 1.2 is negotiated and the ClientHello contained no extensions.</li>
             <li>HC128Engine now strictly requires 128 bits of IV.</li>
+            <li>DTLS: Fixed server support for client_certificate_type extension.</li>
         </ul>
         <h5>Additional Features and Functionality</h5>
         <ul>
diff --git a/crypto/src/tls/DtlsServerProtocol.cs b/crypto/src/tls/DtlsServerProtocol.cs
index 0116bb9e6..8b2d9db2c 100644
--- a/crypto/src/tls/DtlsServerProtocol.cs
+++ b/crypto/src/tls/DtlsServerProtocol.cs
@@ -712,7 +712,7 @@ namespace Org.BouncyCastle.Tls
             Certificate.ParseOptions options = new Certificate.ParseOptions()
             {
                 CertificateType = TlsExtensionsUtilities.GetClientCertificateTypeExtensionServer(
-                    state.clientExtensions, CertificateType.X509),
+                    state.serverExtensions, CertificateType.X509),
                 MaxChainLength = state.server.GetMaxCertificateChainLength(),
             };