Name Description Size
err.rs 6916
exp.rs TODO macro_rules! experimental_api { ( $n:ident ( $( $a:ident : $t:ty ),* $(,)? ) ) => { #[allow(non_snake_case)] #[allow(clippy::too_many_arguments)] pub(crate) unsafe fn $n ( $( $a : $t ),* ) -> Result<(), crate::err::Error> { const EXP_FUNCTION: &str = stringify!($n); let n = ::std::ffi::CString::new(EXP_FUNCTION)?; let f = crate::ssl::SSL_GetExperimentalAPI(n.as_ptr()); if f.is_null() { return Err(crate::err::Error::InternalError); } let f: unsafe extern "C" fn( $( $t ),* ) -> crate::SECStatus = ::std::mem::transmute(f); let rv = f( $( $a ),* ); crate::err::secstatus_to_res(rv) } }; } 1055
lib.rs 5069
p11.rs 5841
prio.rs 623
prtypes.rs 689
ssl.rs TODO: these will be moved to a dedicated module experimental_api!(SSL_GetCurrentEpoch( fd: *mut PRFileDesc, read_epoch: *mut u16, write_epoch: *mut u16, )); experimental_api!(SSL_HelloRetryRequestCallback( fd: *mut PRFileDesc, cb: SSLHelloRetryRequestCallback, arg: *mut c_void, )); experimental_api!(SSL_RecordLayerWriteCallback( fd: *mut PRFileDesc, cb: SSLRecordWriteCallback, arg: *mut c_void, )); experimental_api!(SSL_RecordLayerData( fd: *mut PRFileDesc, epoch: Epoch, ct: SSLContentType::Type, data: *const u8, len: c_uint, )); experimental_api!(SSL_SendSessionTicket( fd: *mut PRFileDesc, extra: *const u8, len: c_uint, )); experimental_api!(SSL_SetMaxEarlyDataSize(fd: *mut PRFileDesc, size: u32)); experimental_api!(SSL_SetResumptionToken( fd: *mut PRFileDesc, token: *const u8, len: c_uint, )); experimental_api!(SSL_SetResumptionTokenCallback( fd: *mut PRFileDesc, cb: SSLResumptionTokenCallback, arg: *mut c_void, )); experimental_api!(SSL_GetResumptionTokenInfo( token: *const u8, token_len: c_uint, info: *mut SSLResumptionTokenInfo, len: c_uint, )); experimental_api!(SSL_DestroyResumptionTokenInfo( info: *mut SSLResumptionTokenInfo, )); 4458
time.rs TODO move to exp module experimental_api!(SSL_SetTimeFunc( fd: *mut PRFileDesc, cb: SSLTimeFunc, arg: *mut c_void, )); 6917
util.rs 8866