summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 01:07:22 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 01:07:22 +0700
commit5f2a38957f777e32ce79089de093760abe8089cd (patch)
tree06eb4c96e682bbc9a2b26da9061854be44a00a73
parentgithub #23 added method for handling signing subkey (diff)
downloadBouncyCastle.NET-ed25519-5f2a38957f777e32ce79089de093760abe8089cd.tar.xz
Use portable Stream close
-rw-r--r--crypto/src/tsp/TimeStampTokenGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tsp/TimeStampTokenGenerator.cs b/crypto/src/tsp/TimeStampTokenGenerator.cs
index 4783c8772..55142a5e9 100644
--- a/crypto/src/tsp/TimeStampTokenGenerator.cs
+++ b/crypto/src/tsp/TimeStampTokenGenerator.cs
@@ -86,7 +86,7 @@ namespace Org.BouncyCastle.Tsp
                 byte[] certEnc = assocCert.GetEncoded();
                 stream.Write(certEnc, 0, certEnc.Length);
                 stream.Flush();
-                stream.Close();
+                Platform.Dispose(stream);
 
                 if (((AlgorithmIdentifier)digestCalculator.AlgorithmDetails).Algorithm.Equals(OiwObjectIdentifiers.IdSha1))
                 {