Function bearssl::br_sslio_close
[−]
[src]
pub unsafe extern "C" fn br_sslio_close(cc: *mut br_sslio_context) -> c_int
\brief Close the SSL connection.
This call runs the SSL closure protocol (sending a close_notify
,
receiving the response close_notify
). When it returns, the SSL
connection is finished. It is still up to the caller to manage the
possible transport-level termination, if applicable (alternatively,
the underlying transport stream may be reused for non-SSL messages).
Returned value is 0 on success, -1 on error. A failure by the peer
to process the complete closure protocol (i.e. sending back the
close_notify
) is an error.
\param cc SSL wrapper context. \return 0 on success, or -1 on error.