Function gnunet_sys::GNUNET_CRYPTO_get_peer_identity[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_get_peer_identity(
    cfg: *const GNUNET_CONFIGURATION_Handle,
    dst: *mut GNUNET_PeerIdentity
) -> c_int

@ingroup crypto Retrieve the identity of the host’s peer.

@param cfg configuration to use @param dst pointer to where to write the peer identity @return #GNUNET_OK on success, #GNUNET_SYSERR if the identity could not be retrieved