コード例 #1
0
 def __init__(self, id=None, _ptr=None, _pyfree=1):
     if not _ptr and not id:
         raise ValueError("No engine id specified")
     self._ptr = _ptr
     if not self._ptr:
         self._ptr = m2.engine_by_id(id)
         if not self._ptr:
             raise ValueError("Unknown engine: %s" % id)
     self._pyfree = _pyfree
コード例 #2
0
ファイル: Engine.py プロジェクト: tempbottle/M2Crypto
 def __init__(self, id = None, _ptr = None, _pyfree = 1):
     if not _ptr and not id:
         raise ValueError("No engine id specified")
     self._ptr = _ptr
     if not self._ptr:
         self._ptr = m2.engine_by_id(id)
         if not self._ptr:
             raise ValueError("Unknown engine: %s" % id)
     self._pyfree = _pyfree
コード例 #3
0
ファイル: Engine.py プロジェクト: cs525-koala/euca2ools-deps
 def __init__(self, id = None, _ptr = None, _pyfree = 1):
     """Create new Engine from ENGINE pointer or obtain by id"""
     if not _ptr and not id:
         raise ValueError("No engine id specified")
     self._ptr = _ptr
     if not self._ptr:
         self._ptr = m2.engine_by_id(id)
         if not self._ptr:
             raise ValueError("Unknown engine: %s" % id)
     self._pyfree = _pyfree
コード例 #4
0
 def __init__(self, id=None, _ptr=None, _pyfree=1):
     """Create new Engine from ENGINE pointer or obtain by id"""
     if not _ptr and not id:
         raise ValueError("No engine id specified")
     self._ptr = _ptr
     if not self._ptr:
         self._ptr = m2.engine_by_id(id)
         if not self._ptr:
             raise ValueError("Unknown engine: %s" % id)
     self._pyfree = _pyfree