'Get the version subfield (RFC 2459, section 4.1.2.1) of the certificate
request.
:return: an integer giving the value of the version subfield'

def get_version(self):

    return _lib.X509_REQ_get_version(self._req)
