handleMSG_SERVICE_ACCEPT method

void handleMSG_SERVICE_ACCEPT()

Handle accepted MSG_SERVICE_REQUEST sent in response to MSG_NEWKEYS.

Implementation

void handleMSG_SERVICE_ACCEPT() {
  if (tracePrint != null) tracePrint('$hostport: MSG_SERVICE_ACCEPT');
  if (login == null || login.isEmpty) {
    loginPrompts = 1;
    response(this, 'login: ');
  }
  if (identity == null && loadIdentity != null) {
    identity = loadIdentity();
  }
  sendAuthenticationRequest();
}