recv_msg
if (recv_msg(helper->fd, msg) == SSH2_AGENT_SIGN_RESPONSE) {
type = recv_msg(helper->fd, msg);