Struct bearssl::br_ssl_session_cache_class_ [] [src]

#[repr(C)]
pub struct br_ssl_session_cache_class_ { pub context_size: usize, pub save: Option<unsafe extern "C" fn(_: *mut *const br_ssl_session_cache_class, _: *mut br_ssl_server_context, _: *const br_ssl_session_parameters)>, pub load: Option<unsafe extern "C" fn(_: *mut *const br_ssl_session_cache_class, _: *mut br_ssl_server_context, _: *mut br_ssl_session_parameters) -> c_int>, }

Fields

\brief Context size (in bytes).

\brief Record a session.

This callback should record the provided session parameters. The params structure is transient, so its contents shall be copied into the cache. The session ID has been randomly generated and always has length exactly 32 bytes.

\param ctx session cache context. \param server_ctx SSL server context. \param params session parameters to save.

\brief Lookup a session in the cache.

The session ID to lookup is in params and always has length exactly 32 bytes. If the session parameters are found in the cache, then the parameters shall be copied into the params structure. Returned value is 1 on successful lookup, 0 otherwise.

\param ctx session cache context. \param server_ctx SSL server context. \param params destination for session parameters. \return 1 if found, 0 otherwise.

Trait Implementations

impl Debug for br_ssl_session_cache_class_
[src]

[src]

Formats the value using the given formatter.

impl Copy for br_ssl_session_cache_class_
[src]

impl Clone for br_ssl_session_cache_class_
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more