summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-01-31 11:44:49 +0000
committerclaudio <claudio@openbsd.org>2009-01-31 11:44:49 +0000
commit9627de93c428df492d43053513ef7749aad5b473 (patch)
tree1b9d8074a0794e9287c96a0576bef8c9f77cae8f /lib
parentPass the buffer to send_packet() instead of spliting it up. This removes (diff)
downloadwireguard-openbsd-9627de93c428df492d43053513ef7749aad5b473.tar.xz
wireguard-openbsd-9627de93c428df492d43053513ef7749aad5b473.zip
Implement buf_left() to make some some more buffer handling easier.
buf_left() returns the bytes left in a buffer. This makes the check to keep MD5_DIGEST_LENGTH bytes unallocated in some messages easier. From the buf cleanup diff that was OK norby@ and henning@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions