diff options
author | David Hook <dgh@bouncycastle.org> | 2021-05-24 05:21:22 +1000 |
---|---|---|
committer | David Hook <dgh@bouncycastle.org> | 2021-05-24 05:21:22 +1000 |
commit | 9b75148ab24f6a557bef072821b1fc1791ffcefb (patch) | |
tree | d59888bdb7857e2a64aaa22ff56fe383b4ef2999 /crypto/src/tsp/TimeStampTokenGenerator.cs | |
parent | removed bogus code (diff) | |
parent | Use portable Stream close (diff) | |
download | BouncyCastle.NET-ed25519-9b75148ab24f6a557bef072821b1fc1791ffcefb.tar.xz |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'crypto/src/tsp/TimeStampTokenGenerator.cs')
-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)) { |