diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-05-24 01:07:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-05-24 01:07:22 +0700 |
commit | 5f2a38957f777e32ce79089de093760abe8089cd (patch) | |
tree | 06eb4c96e682bbc9a2b26da9061854be44a00a73 | |
parent | github #23 added method for handling signing subkey (diff) | |
download | BouncyCastle.NET-ed25519-5f2a38957f777e32ce79089de093760abe8089cd.tar.xz |
Use portable Stream close
-rw-r--r-- | crypto/src/tsp/TimeStampTokenGenerator.cs | 2 |
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)) { |