public static byte[] CreateStatusRequestExtension(CertificateStatusRequest statusRequest)
        {
            if (statusRequest == null)
            {
                throw new TlsFatalAlert(80);
            }
            MemoryStream memoryStream = new MemoryStream();

            statusRequest.Encode(memoryStream);
            return(memoryStream.ToArray());
        }
Пример #2
0
        /// <exception cref="IOException"></exception>
        public static byte[] CreateStatusRequestExtension(CertificateStatusRequest statusRequest)
        {
            if (statusRequest == null)
            {
                throw new TlsFatalAlert(AlertDescription.internal_error);
            }

            MemoryStream buf = new MemoryStream();

            statusRequest.Encode(buf);

            return(buf.ToArray());
        }
Пример #3
0
        public static byte[] CreateStatusRequestExtension(CertificateStatusRequest statusRequest)
        {
            //IL_000b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0011: Expected O, but got Unknown
            if (statusRequest == null)
            {
                throw new TlsFatalAlert(80);
            }
            MemoryStream val = new MemoryStream();

            statusRequest.Encode((Stream)(object)val);
            return(val.ToArray());
        }
Пример #4
0
        /// <exception cref="IOException"></exception>
        public static byte[] CreateStatusRequestExtension(CertificateStatusRequest statusRequest)
        {
            if (statusRequest == null)
            {
                throw new TlsFatalAlert(AlertDescription.internal_error);
            }

            MemoryStream buf = new MemoryStream();

            statusRequest.Encode(buf);

            return buf.ToArray();
        }