int flags = req.getInt();
Buffer sig = new Buffer();
sig.putString(key instanceof RSAPublicKey ? KeyPairProvider.SSH_RSA : KeyPairProvider.SSH_DSS);
sig.putBytes(agent.sign(key, data));
rep.putByte(SSH2_AGENT_SIGN_RESPONSE);
rep.putBytes(sig.array(), sig.rpos(), sig.available());
break;
}
case SSH2_AGENTC_ADD_IDENTITY:
{
agent.addIdentity(req.getKeyPair(), req.getString());