Function libzt::zts_init_from_memory[][src]

pub unsafe extern "C" fn zts_init_from_memory(
    key: *const c_char,
    len: c_uint
) -> c_int
Expand description

@brief Instruct ZeroTier to use the identity provided in key. This is an initialization function that can only be called before zts_node_start().

Note that calling this function is not mandatory and if it is not called the node’s keys will be kept in memory and retrievable via zts_node_get_id_pair().

See also: zts_init_from_storage()

@param key Path Null-terminated file-system path string @param len Length of key buffer @return ZTS_ERR_OK if successful, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument.