Package M2Crypto :: Module X509 :: Class X509_Extension
[frames] | no frames]

Class X509_Extension



X509 Extension

Instance Methods
 
m2_x509_extension_free(...)
 
__init__(self, x509_ext_ptr=None, _pyfree=1)
 
__del__(self)
 
set_critical(self, critical=1)
Mark this extension critical or noncritical.
int
get_critical(self)
Return whether or not this is a critical extension.
 
get_name(self)
Get the extension name, for example 'subjectAltName'.
 
get_value(self, flag=0, indent=0)
Get the extension value, for example 'DNS:www.example.com'.
Method Details

set_critical(self, critical=1)

 

Mark this extension critical or noncritical. By default an extension is not critical.

Parameters:
  • critical (int) - Nonzero sets this extension as critical. Calling this method without arguments will set this extension to critical.

get_critical(self)

 

Return whether or not this is a critical extension.

Returns: int
Nonzero if this is a critical extension.

get_value(self, flag=0, indent=0)

 

Get the extension value, for example 'DNS:www.example.com'.

Parameters:
  • flag - Flag to control what and how to print.
  • indent - How many spaces to print before actual value.