From 18c7d7e154c48b729ded47601c9b0ddd4f74650b Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 3 Nov 2022 18:59:52 +0700 Subject: Clenaup warnings --- crypto/src/asn1/Asn1GeneralizedTime.cs | 9 ++++----- crypto/src/asn1/cmp/CertReqTemplateContent.cs | 5 +++-- crypto/src/asn1/cmp/CmpObjectIdentifiers.cs | 3 ++- crypto/src/asn1/cmp/CrlSource.cs | 2 +- crypto/src/asn1/cmp/RootCaKeyUpdateContent.cs | 5 +++-- 5 files changed, 13 insertions(+), 11 deletions(-) (limited to 'crypto/src/asn1') diff --git a/crypto/src/asn1/Asn1GeneralizedTime.cs b/crypto/src/asn1/Asn1GeneralizedTime.cs index e844c8ca2..139384c1a 100644 --- a/crypto/src/asn1/Asn1GeneralizedTime.cs +++ b/crypto/src/asn1/Asn1GeneralizedTime.cs @@ -11,8 +11,7 @@ namespace Org.BouncyCastle.Asn1 * Base class representing the ASN.1 GeneralizedTime type. *

* The main difference between these and UTC time is a 4 digit year. - *

- *

+ *

* One second resolution date+time on UTC timezone (Z) * with 4 digit year (valid from 0001 to 9999). *

@@ -24,18 +23,18 @@ namespace Org.BouncyCastle.Asn1 * *

11: Restrictions on BER employed by both CER and DER

*

11.7 GeneralizedTime

- *

+ *

* 11.7.1 The encoding shall terminate with a "Z", * as described in the ITU-T Rec. X.680 | ISO/IEC 8824-1 clause on * GeneralizedTime. *

* 11.7.2 The seconds element shall always be present. - *

- *

+ *

* 11.7.3 The fractional-seconds elements, if present, * shall omit all trailing zeros; if the elements correspond to 0, * they shall be wholly omitted, and the decimal point element also * shall be omitted. + *

*/ public class Asn1GeneralizedTime : Asn1Object diff --git a/crypto/src/asn1/cmp/CertReqTemplateContent.cs b/crypto/src/asn1/cmp/CertReqTemplateContent.cs index b229cd28b..c25c71ad1 100644 --- a/crypto/src/asn1/cmp/CertReqTemplateContent.cs +++ b/crypto/src/asn1/cmp/CertReqTemplateContent.cs @@ -9,12 +9,13 @@ namespace Org.BouncyCastle.Asn1.Cmp * GenRep: {id-it 19}, CertReqTemplateContent | < absent > *

* CertReqTemplateValue ::= CertReqTemplateContent - *

+ *

* CertReqTemplateContent ::= SEQUENCE { * certTemplate CertTemplate, * keySpec Controls OPTIONAL } - *

+ *

* Controls ::= SEQUENCE SIZE (1..MAX) OF AttributeTypeAndValue + *

*/ public class CertReqTemplateContent : Asn1Encodable diff --git a/crypto/src/asn1/cmp/CmpObjectIdentifiers.cs b/crypto/src/asn1/cmp/CmpObjectIdentifiers.cs index fa83841a4..1b3227c47 100644 --- a/crypto/src/asn1/cmp/CmpObjectIdentifiers.cs +++ b/crypto/src/asn1/cmp/CmpObjectIdentifiers.cs @@ -234,8 +234,9 @@ namespace Org.BouncyCastle.Asn1.Cmp * 1.2.840.113549.1.9.16.1.21 *

* id-ct OBJECT IDENTIFIER ::= { id-smime 1 } -- content types - *

+ *

* id-ct-encKeyWithID OBJECT IDENTIFIER ::= {id-ct 21} + *

*/ public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21"); diff --git a/crypto/src/asn1/cmp/CrlSource.cs b/crypto/src/asn1/cmp/CrlSource.cs index 13aaa526a..9e2526ec2 100644 --- a/crypto/src/asn1/cmp/CrlSource.cs +++ b/crypto/src/asn1/cmp/CrlSource.cs @@ -12,7 +12,7 @@ namespace Org.BouncyCastle.Asn1.Cmp * CRLSource ::= CHOICE { * dpn [0] DistributionPointName, * issuer [1] GeneralNames } - *

+ *

*/ public class CrlSource : Asn1Encodable, IAsn1Choice diff --git a/crypto/src/asn1/cmp/RootCaKeyUpdateContent.cs b/crypto/src/asn1/cmp/RootCaKeyUpdateContent.cs index b1eaf616d..696b08b94 100644 --- a/crypto/src/asn1/cmp/RootCaKeyUpdateContent.cs +++ b/crypto/src/asn1/cmp/RootCaKeyUpdateContent.cs @@ -7,14 +7,15 @@ namespace Org.BouncyCastle.Asn1.Cmp * GenRep: {id-it 18}, RootCaKeyUpdateContent | < absent > *

* RootCaCertValue ::= CMPCertificate - *

+ *

* RootCaKeyUpdateValue ::= RootCaKeyUpdateContent - *

+ *

* RootCaKeyUpdateContent ::= SEQUENCE { * newWithNew CMPCertificate, * newWithOld [0] CMPCertificate OPTIONAL, * oldWithNew [1] CMPCertificate OPTIONAL * } + *

*/ public class RootCaKeyUpdateContent : Asn1Encodable -- cgit 1.4.1