Lines Matching defs:version
238 /// Sets the version of the certificate.
240 /// Note that the version is zero-indexed; that is, a certificate corresponding to version 3 of
244 pub fn set_version(&mut self, version: i32) -> Result<(), ErrorStack> {
245 unsafe { cvt(ffi::X509_set_version(self.0.as_ptr(), version as c_long)).map(|_| ()) }
623 /// Returns certificate version. If this certificate has no explicit version set, it defaults to
624 /// version 1.
626 /// Note that `0` return value stands for version 1, `1` for version 2 and so on.
630 pub fn version(&self) -> i32 {
1371 /// Set the numerical value of the version field.
1377 pub fn set_version(&mut self, version: i32) -> Result<(), ErrorStack> {
1381 version as c_long,
1548 /// Returns the numerical value of the version field of the certificate request.
1554 pub fn version(&self) -> i32 {
2359 ffi::ASN1_INTEGER_get((*(*x).req_info).version)