It's a bit messy, since some status messages are accompanied by an FD: in this case, the handler returns STATUS_NEED_FD and we read that then re-call the handler. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This distinguishes them before they have an ID, and also if the daemon doesn't know the ID. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Now we do crypto handshake when peer comes in. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>