Function libzt::zts_id_new [−][src]
pub unsafe extern "C" fn zts_id_new(
key: *mut c_char,
key_buf_len: *mut c_uint
) -> c_int
Expand description
@brief Generates a node identity (public/secret key-pair) and stores it in a user-provided buffer.
@param key User-provided destination buffer
@param key_buf_len Length of user-provided destination buffer. Will be set
to the number of bytes copied.
@return ZTS_ERR_OK
if successful, ZTS_ERR_ARG
if invalid argument.