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

Class X509_Extension_Stack



X509 Extension Stack


Warning: Do not modify the underlying OpenSSL stack except through this interface, or use any OpenSSL functions that do so indirectly. Doing so will get the OpenSSL stack and the internal pystack of this class out of sync, leading to python memory leaks, exceptions or even python crashes!

Instance Methods
 
m2_sk_x509_extension_free(...)
 
__init__(self, stack=None, _pyfree=0)
 
__del__(self)
 
__len__(self)
 
__getitem__(self, idx)
 
__iter__(self)
 
push(self, x509_ext)
Push X509_Extension object onto the stack.
 
pop(self)
Pop X509_Extension object from the stack.
Method Details

push(self, x509_ext)

 

Push X509_Extension object onto the stack.

Parameters:
  • x509_ext (M2Crypto.X509.X509_Extension) - X509_Extension object to be pushed onto the stack.
Returns:
The number of extensions on the stack.

pop(self)

 

Pop X509_Extension object from the stack.

Returns:
X509_Extension popped