Add CBS_dup() to initialize a new CBS with the same values.
authordoug <doug@openbsd.org>
Fri, 19 Jun 2015 00:23:36 +0000 (00:23 +0000)
committerdoug <doug@openbsd.org>
Fri, 19 Jun 2015 00:23:36 +0000 (00:23 +0000)
commit42fa457b97a5d7987713328a587adab14baf4559
tree49fa5934eb0a4d45ee5b06bc6a8811eef77a07a1
parent84fb28f64bb2c1be9b43dd98f60ef08aaf198160
Add CBS_dup() to initialize a new CBS with the same values.

This is useful for when you need to check the data ahead and then continue
on from the same spot.

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