diff --git a/ci-constraints-requirements.txt b/ci-constraints-requirements.txt index d7cada634a2b..0835ba5d5fe0 100644 --- a/ci-constraints-requirements.txt +++ b/ci-constraints-requirements.txt @@ -32,7 +32,7 @@ check-sdist==1.2.0 ; python_full_version >= '3.8' # via cryptography (pyproject.toml) click==8.1.7 # via cryptography (pyproject.toml) -colorama==0.4.6 ; (platform_system != 'Windows' and sys_platform == 'win32') or platform_system == 'Windows' or os_name == 'nt' +colorama==0.4.6 ; os_name == 'nt' or (platform_system == 'Windows' and sys_platform != 'win32') or sys_platform == 'win32' # via # build # click diff --git a/src/rust/src/x509/csr.rs b/src/rust/src/x509/csr.rs index ae669d941bf5..89051d824c0e 100644 --- a/src/rust/src/x509/csr.rs +++ b/src/rust/src/x509/csr.rs @@ -221,17 +221,14 @@ impl CertificateSigningRequest { } #[getter] - fn is_signature_valid( - slf: pyo3::PyRef<'_, Self>, - py: pyo3::Python<'_>, - ) -> CryptographyResult { - let public_key = slf.public_key(py)?; + fn is_signature_valid(&self, py: pyo3::Python<'_>) -> CryptographyResult { + let public_key = self.public_key(py)?; Ok(sign::verify_signature_with_signature_algorithm( py, public_key, - &slf.raw.borrow_dependent().signature_alg, - slf.raw.borrow_dependent().signature.as_bytes(), - &asn1::write_single(&slf.raw.borrow_dependent().csr_info)?, + &self.raw.borrow_dependent().signature_alg, + self.raw.borrow_dependent().signature.as_bytes(), + &asn1::write_single(&self.raw.borrow_dependent().csr_info)?, ) .is_ok()) }