handleAGENTC_REQUEST_IDENTITIES method

void handleAGENTC_REQUEST_IDENTITIES(
  1. Channel channel
)

Responds with any identities we're forwarding.

Implementation

void handleAGENTC_REQUEST_IDENTITIES(Channel channel) {
  if (tracePrint != null) {
    tracePrint('$hostport: agent channel: AGENTC_REQUEST_IDENTITIES');
  }
  AGENT_IDENTITIES_ANSWER reply = AGENT_IDENTITIES_ANSWER();
  if (identity != null) {
    reply.keys = identity.getRawPublicKeyList();
  }
  sendToChannel(channel, reply.toRaw());
}