summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-06 19:44:08 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-06 19:44:08 +0700
commitceb38d21d9db8d8aa2b52126d6e07823acb3c428 (patch)
tree9c6016fa82bce2904bdca3a94125a84087c164c6
parentRefactoring in Asn1 (diff)
downloadBouncyCastle.NET-ed25519-ceb38d21d9db8d8aa2b52126d6e07823acb3c428.tar.xz
Use Id instead of ToString
-rw-r--r--crypto/src/cms/CMSCompressedDataParser.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/CMSCompressedDataParser.cs b/crypto/src/cms/CMSCompressedDataParser.cs

index 38ff88968..2212f45fd 100644 --- a/crypto/src/cms/CMSCompressedDataParser.cs +++ b/crypto/src/cms/CMSCompressedDataParser.cs
@@ -46,7 +46,7 @@ namespace Org.BouncyCastle.Cms Asn1OctetStringParser bytes = (Asn1OctetStringParser)content.GetContent(Asn1Tags.OctetString); Stream zIn = ZLib.DecompressInput(bytes.GetOctetStream()); - return new CmsTypedStream(content.ContentType.ToString(), zIn); + return new CmsTypedStream(content.ContentType.Id, zIn); } catch (IOException e) {