def __init__(self, req=None, _pyfree=0): # type: (Optional[int], int) -> None if req is not None: self.req = req self._pyfree = _pyfree else: self.req = m2.x509_req_new() m2.x509_req_set_version(self.req, 0) self._pyfree = 1
def set_version(self, version): # type: (int) -> int """ Set version. :param version: Version number. :return: Returns 0 on failure. """ return m2.x509_req_set_version(self.req, version)
def set_version(self, version): """ Set version. @type version: int @param version: Version number. @rtype: int @return: Returns 0 on failure. """ return m2.x509_req_set_version(self.req, version)