Lines Matching refs:error
1 //! Custom error library support for the `openssl` crate.
3 //! OpenSSL allows third-party libraries to integrate with its error API. This crate provides a safe interface to that.
9 //! use openssl::error::Error;
27 //! IO_ERROR("IO error");
33 //! // The put_error! macro pushes errors onto the OpenSSL error stack.
36 //! // Prints `error:80001002:my cool library:find_private_key:invalid private key password:src/lib.rs:27:`
44 //! // Prints `error:80001001:my cool library:find_private_key:IO error:src/lib.rs:34:tried 2 times`
68 /// An OpenSSL error library.
82 /// A function declaration, parameterized by its error library.
109 /// A reason declaration, parameterized by its error library.
196 /// Pushes an error onto the OpenSSL error stack.
198 /// A function and reason are required, and must be associated with the same error library. An additional formatted
242 /// Defines custom OpenSSL error libraries.
282 STRINGS[0].error = $crate::export::ERR_PACK(LIB_NUM, 0, 0);
331 error: 0,
336 error: $crate::export::ERR_PACK(0, 0, $lib_name::$reason_name.__as_raw()),
341 error: 0,
364 error: 0,
369 error: $crate::export::ERR_PACK(0, $lib_name::$func_name.__as_raw(), 0),
375 error: $crate::export::ERR_PACK(0, 0, $lib_name::$reason_name.__as_raw()),
380 error: 0,