'Set the version subfield (RFC 2459, section 4.1.2.1) of the certificate
request.
:param version: The version number
:return: None'

def set_version(self, version):

    set_result = _lib.X509_REQ_set_version(self._req, version)
    if (not set_result):
        _raise_current_error()
