public override string Format(bool multiLine)
 {
     if ((base.m_rawData == null) || (base.m_rawData.Length == 0))
     {
         return(string.Empty);
     }
     return(CAPI.CryptFormatObject(1, multiLine ? 1 : 0, new IntPtr(7L), base.m_rawData));
 }
예제 #2
0
        public override string Format(bool multiLine)
        {
            //
            // We must override to use the "numeric" pointer version of
            // CryptFormatObject, since X509 DN does not have an official OID.
            //

            // Return empty string if no data to format.
            if (m_rawData == null || m_rawData.Length == 0)
            {
                return(String.Empty);
            }

            return(CAPI.CryptFormatObject(CAPI.X509_ASN_ENCODING,
                                          multiLine ? CAPI.CRYPT_FORMAT_STR_MULTI_LINE : 0,
                                          new IntPtr(CAPI.X509_NAME),
                                          m_rawData));
        }