Add CBS_write_bytes() to copy the remaining CBS bytes to the caller.
authordoug <doug@openbsd.org>
Wed, 17 Jun 2015 07:06:22 +0000 (07:06 +0000)
committerdoug <doug@openbsd.org>
Wed, 17 Jun 2015 07:06:22 +0000 (07:06 +0000)
commitdf129122ce6763dc6b6d92685d7e6b0ba8918ea1
tree0b90a1b8c06cf0fedbc4b64292a9324116b77a99
parent34e475baa11c5a5ca99b53ac5e554351151ab3b7
Add CBS_write_bytes() to copy the remaining CBS bytes to the caller.

This is a common operation when dealing with CBS.

ok miod@ jsing@
lib/libssl/bs_cbs.c
lib/libssl/bytestring.h
lib/libssl/src/ssl/bs_cbs.c
lib/libssl/src/ssl/bytestring.h