priv: Fix brackets of burn macros.
wrapper: Make sure we really burn the buffer.
session: Make sure we correctly burn the buffer.
server kex: enable delayed compression

The code is careful to reenable compression when rekeying.

Signed-off-by: Nicolas Viennot <nicolas@viennot.biz>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
server: Fix ssh_execute_server_callbacks() client execution

When the public key auth handler is executed and returns SSH_OK,
ssh_execute_server_callbacks() still runs some client callbacks,
which may set rc to SSH_AGAIN, which triggers a default reply on
auth, denying auth.

Signed-off-by: Nicolas Viennot <nicolas@viennot.biz>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
socket: Fix check for pending data.

BUG: https://red.libssh.org/issues/119

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Fix examples compilation on OSX (libargp)
examples: fix forktty() warning on OSX
curve25519: include reference implementation