summary refs log tree commit diff
path: root/crypto/src/tls/OcspStatusRequest.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-30 11:15:39 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-30 11:15:39 +0700
commit633b1a5da2e9ad5323397616dbee05b3d7de5739 (patch)
tree5048f252d70c5fceea0ffbde04afbd3ad9ec7539 /crypto/src/tls/OcspStatusRequest.cs
parentNull tmpBuffers when disposing (diff)
downloadBouncyCastle.NET-ed25519-633b1a5da2e9ad5323397616dbee05b3d7de5739.tar.xz
Refactoring around MemoryStream
Diffstat (limited to 'crypto/src/tls/OcspStatusRequest.cs')
-rw-r--r--crypto/src/tls/OcspStatusRequest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tls/OcspStatusRequest.cs b/crypto/src/tls/OcspStatusRequest.cs
index 00728f64e..a1688efcb 100644
--- a/crypto/src/tls/OcspStatusRequest.cs
+++ b/crypto/src/tls/OcspStatusRequest.cs
@@ -56,8 +56,8 @@ namespace Org.BouncyCastle.Tls
                     TlsUtilities.WriteOpaque16(derEncoding, buf);
                 }
                 TlsUtilities.CheckUint16(buf.Length);
-                TlsUtilities.WriteUint16((int)buf.Length, output);
-                Streams.WriteBufTo(buf, output);
+                TlsUtilities.WriteUint16(Convert.ToInt32(buf.Length), output);
+                buf.WriteTo(output);
             }
 
             if (m_requestExtensions == null)