using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date; using BestHTTP.SecureProtocol.Org.BouncyCastle.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp { // Token: 0x020019D2 RID: 6610 [Token(Token = "0x20019D2")] public class SingleResp : X509ExtensionBase { // Token: 0x06009DF5 RID: 40437 RVA: 0x00212058 File Offset: 0x00210258 [Token(Token = "0x6009DF5")] [Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")] public SingleResp(SingleResponse resp) { this.resp = resp; } // Token: 0x06009DF6 RID: 40438 RVA: 0x00212074 File Offset: 0x00210274 [Token(Token = "0x6009DF6")] [Address(RVA = "0x28CAFF0", Offset = "0x28C9DF0", VA = "0x1828CAFF0")] public CertificateID GetCertID() { return new CertificateID(this.resp.certID); } // Token: 0x06009DF7 RID: 40439 RVA: 0x00212098 File Offset: 0x00210298 [Token(Token = "0x6009DF7")] [Address(RVA = "0x28CB060", Offset = "0x28C9E60", VA = "0x1828CB060")] public object GetCertStatus() { CertStatus certStatus = this.resp.certStatus; int tagNo = certStatus.tagNo; if (tagNo != 0) { if (tagNo != 1) { UnknownStatus unknownStatus = new UnknownStatus(); } RevokedInfo instance = RevokedInfo.GetInstance(certStatus.value); RevokedStatus revokedStatus; revokedStatus.info = instance; } throw new NullReferenceException(); } // Token: 0x17001923 RID: 6435 // (get) Token: 0x06009DF8 RID: 40440 RVA: 0x002120E4 File Offset: 0x002102E4 [Token(Token = "0x17001923")] public DateTime ThisUpdate { [Token(Token = "0x6009DF8")] [Address(RVA = "0x28CB220", Offset = "0x28CA020", VA = "0x1828CB220")] get { return this.resp.thisUpdate.ToDateTime(); } } // Token: 0x17001924 RID: 6436 // (get) Token: 0x06009DF9 RID: 40441 RVA: 0x00212108 File Offset: 0x00210308 [Token(Token = "0x17001924")] public DateTimeObject NextUpdate { [Token(Token = "0x6009DF9")] [Address(RVA = "0x28CB190", Offset = "0x28C9F90", VA = "0x1828CB190")] get { DerGeneralizedTime nextUpdate = this.resp.nextUpdate; if (nextUpdate == 0) { } return new DateTimeObject(nextUpdate.ToDateTime()); } } // Token: 0x17001925 RID: 6437 // (get) Token: 0x06009DFA RID: 40442 RVA: 0x00212138 File Offset: 0x00210338 [Token(Token = "0x17001925")] public X509Extensions SingleExtensions { [Token(Token = "0x6009DFA")] [Address(RVA = "0x42FC20", Offset = "0x42EA20", VA = "0x18042FC20")] get { return this.resp.singleExtensions; } } // Token: 0x06009DFB RID: 40443 RVA: 0x00212158 File Offset: 0x00210358 [Token(Token = "0x6009DFB")] [Address(RVA = "0x42FC20", Offset = "0x42EA20", VA = "0x18042FC20", Slot = "8")] protected override X509Extensions GetX509Extensions() { return this.resp.singleExtensions; } // Token: 0x04006A23 RID: 27171 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4006A23")] internal readonly SingleResponse resp; } }