Function indy::api::agent::indy_agent_remove_identity [] [src]

#[no_mangle]
pub extern "C" fn indy_agent_remove_identity(
    command_handle: i32,
    listener_handle: i32,
    wallet_handle: i32,
    did: *const c_char,
    rm_identity_cb: Option<extern "C" fn(_: i32, _: ErrorCode)>
) -> ErrorCode

Remove identity from listener.

Performs wallet lookup to find corresponded receiver Identity information. Information about receiver Identity must be saved in the wallet with indy_create_and_store_my_did call before this call.

After successfully rm_identity listener will stop to accept incoming connection to removed DID.

Params

command_handle: command handle to map callback to caller context. listener_handle: listener handle (created by indy_agent_listen). wallet_handle: wallet handle (created by open_wallet). did: DID of identity.

rm_identity_cb: Callback that will be called after identity removed or on error. Will be called exactly once with result of start listen operation.

Returns

Error code rm_identity_cb: - xcommand_handle: command handle to map callback to caller context. - err: Error code