Commit 79602b6a authored by Steven Fackler's avatar Steven Fackler
Browse files

get_error -> error

parent a0a6c03d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ run_test!(verify_callback_load_certs, |method, stream| {
run_test!(verify_trusted_get_error_ok, |method, stream| {
    let mut ctx = SslContext::new(method).unwrap();
    ctx.set_verify_callback(SSL_VERIFY_PEER, |_, x509_ctx| {
        assert!(x509_ctx.get_error().is_none());
        assert!(x509_ctx.error().is_none());
        true
    });

@@ -324,7 +324,7 @@ run_test!(verify_trusted_get_error_ok, |method, stream| {
run_test!(verify_trusted_get_error_err, |method, stream| {
    let mut ctx = SslContext::new(method).unwrap();
    ctx.set_verify_callback(SSL_VERIFY_PEER, |_, x509_ctx| {
        assert!(x509_ctx.get_error().is_some());
        assert!(x509_ctx.error().is_some());
        false
    });

+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ impl X509StoreContext {
        X509StoreContext { ctx: ctx }
    }

    pub fn get_error(&self) -> Option<X509ValidationError> {
    pub fn error(&self) -> Option<X509ValidationError> {
        let err = unsafe { ffi::X509_STORE_CTX_get_error(self.ctx) };
        X509ValidationError::from_raw(err)
    }