summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2021-05-24 05:21:22 +1000
committerDavid Hook <dgh@bouncycastle.org>2021-05-24 05:21:22 +1000
commit9b75148ab24f6a557bef072821b1fc1791ffcefb (patch)
treed59888bdb7857e2a64aaa22ff56fe383b4ef2999
parentremoved bogus code (diff)
parentUse portable Stream close (diff)
downloadBouncyCastle.NET-ed25519-9b75148ab24f6a557bef072821b1fc1791ffcefb.tar.xz
Merge remote-tracking branch 'refs/remotes/origin/master'
-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)) {