Function libzt::zts_node_get_id_pair [−][src]
pub unsafe extern "C" fn zts_node_get_id_pair(
key: *mut c_char,
key_dst_len: *mut c_uint
) -> c_int
Expand description
@brief Copy the current node’s public (and secret!) identity into a buffer.
WARNING
: This function exports your secret key and should be used carefully.
@param key User-provided destination buffer
@param key_dst_len Length of user-provided destination buffer. Will be set to
number of bytes copied.
@return ZTS_ERR_OK
if successful, ZTS_ERR_SERVICE
if the node
experiences a problem, ZTS_ERR_ARG
if invalid argument.