Commit 351bc569 authored by Jonas Schievink's avatar Jonas Schievink
Browse files

Put the test behind the catch_unwind feature

And fix an unused variable warning
parent d176ea1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -305,10 +305,11 @@ mod test {
    }

    #[test]
    #[cfg(feature = "catch_unwind")]
    pub fn test_password() {
        let mut password_queried = false;
        let mut buffer = File::open("test/rsa-encrypted.pem").unwrap();
        let rsa = RSA::private_key_from_pem_cb(&mut buffer, |password| {
        RSA::private_key_from_pem_cb(&mut buffer, |password| {
            password_queried = true;
            password[0] = b'm' as _;
            password[1] = b'y' as _;