예제 #1
0
    def get_value(self, flag=0, indent=0):
        """
        Get the extension value, for example 'DNS:www.example.com'.

        @param flag:   Flag to control what and how to print.
        @param indent: How many spaces to print before actual value.
        """
        buf = BIO.MemoryBuffer()
        m2.x509_ext_print(buf.bio_ptr(), self.x509_ext, flag, indent)
        return buf.read_all()
예제 #2
0
파일: X509.py 프로젝트: rodrigc/m2crypto
    def get_value(self, flag=0, indent=0):
        """
        Get the extension value, for example 'DNS:www.example.com'.

        @param flag:   Flag to control what and how to print.
        @param indent: How many spaces to print before actual value.
        """
        buf = BIO.MemoryBuffer()
        m2.x509_ext_print(buf.bio_ptr(), self.x509_ext, flag, indent)
        return buf.read_all()