Exemple #1
0
        /// <exception cref="IOException"></exception>
        public static CertificateStatusRequest ReadStatusRequestExtension(byte[] extensionData)
        {
            if (extensionData == null)
            {
                throw new ArgumentNullException("extensionData");
            }

            MemoryStream buf = new MemoryStream(extensionData, false);

            CertificateStatusRequest statusRequest = CertificateStatusRequest.Parse(buf);

            TlsProtocol.AssertEmpty(buf);

            return(statusRequest);
        }
Exemple #2
0
        public static CertificateStatusRequest ReadStatusRequestExtension(byte[] extensionData)
        {
            //IL_0008: Unknown result type (might be due to invalid IL or missing references)
            //IL_0010: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Expected O, but got Unknown
            if (extensionData == null)
            {
                throw new ArgumentNullException("extensionData");
            }
            MemoryStream             val    = new MemoryStream(extensionData, false);
            CertificateStatusRequest result = CertificateStatusRequest.Parse((Stream)(object)val);

            TlsProtocol.AssertEmpty(val);
            return(result);
        }