diff options
Diffstat (limited to 'crypto/src/tls/CertificateUrl.cs')
-rw-r--r-- | crypto/src/tls/CertificateUrl.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tls/CertificateUrl.cs b/crypto/src/tls/CertificateUrl.cs index 6629e67f9..e14446d6f 100644 --- a/crypto/src/tls/CertificateUrl.cs +++ b/crypto/src/tls/CertificateUrl.cs @@ -101,13 +101,13 @@ namespace Org.BouncyCastle.Tls internal void EncodeTo(Stream output) { // Patch actual length back in - int length = (int)Length - 2; + int length = Convert.ToInt32(Length) - 2; TlsUtilities.CheckUint16(length); Seek(0L, SeekOrigin.Begin); TlsUtilities.WriteUint16(length, this); - Streams.WriteBufTo(this, output); + WriteTo(output); Platform.Dispose(this); } |