Beispiel #1
0
    def as_text(self, flags=0):
        # type: (int) -> str
        """output an ASN1_STRING structure according to the set flags.

        @param flags: determine the format of the output by using
               predetermined constants, see ASN1_STRING_print_ex(3)
               manpage for their meaning.
        @return: output an ASN1_STRING structure.
        """
        buf = BIO.MemoryBuffer()
        m2.asn1_string_print_ex(buf.bio_ptr(), self.asn1str, flags)
        return buf.read_all()
Beispiel #2
0
    def as_text(self, flags=0):
        # type: (int) -> str
        """Output an ASN1_STRING structure according to the set flags.

        :param flags: determine the format of the output by using
               predetermined constants, see ASN1_STRING_print_ex(3)
               manpage for their meaning.
        :return: output an ASN1_STRING structure.
        """
        buf = BIO.MemoryBuffer()
        m2.asn1_string_print_ex(buf.bio_ptr(), self.asn1str, flags)
        return six.ensure_text(buf.read_all())
Beispiel #3
0
 def as_text(self, flags=0):
     buf = BIO.MemoryBuffer()
     m2.asn1_string_print_ex(buf.bio_ptr(), self.asn1str, flags)
     return buf.read_all()