Skip to main content

ossl_call

Macro ossl_call 

Source
macro_rules! ossl_call {
    ($expr:expr) => { ... };
}
Expand description

Call an OpenSSL function that returns 1 on success.

On failure drains the error queue and returns Err(ErrorStack).

ossl_call!(EVP_DigestInit_ex2(ctx.ptr, alg.as_ptr(), params_ptr))?;