コード例 #1
0
 def __init__(self, store=None, _pyfree=0):
     if store is not None:
         self.store = store
         self._pyfree = _pyfree
     else:
         self.store = m2.x509_store_new()
         self._pyfree = 1
コード例 #2
0
ファイル: X509.py プロジェクト: rodrigc/m2crypto
 def __init__(self, store=None, _pyfree=0):
     if store is not None:
         self.store = store
         self._pyfree = _pyfree
     else:
         self.store = m2.x509_store_new()
         self._pyfree = 1
コード例 #3
0
 def __init__(self, store=None, _pyfree=0):
     # type: (Optional[bytes], int) -> None
     """
     :param store: binary data for OpenSSL X509_STORE_CTX type.
     """
     if store is not None:
         self.store = store
         self._pyfree = _pyfree
     else:
         self.store = m2.x509_store_new()
         self._pyfree = 1
コード例 #4
0
ファイル: X509.py プロジェクト: mcepl/M2Crypto
 def __init__(self, store=None, _pyfree=0):
     # type: (Optional[bytes], int) -> None
     """
     :param store: binary data for OpenSSL X509_STORE_CTX type.
     """
     if store is not None:
         self.store = store
         self._pyfree = _pyfree
     else:
         self.store = m2.x509_store_new()
         self._pyfree = 1