Provide the bytestring APIs for libcrypto internal use.
authorjsing <jsing@openbsd.org>
Sat, 20 Nov 2021 18:10:52 +0000 (18:10 +0000)
committerjsing <jsing@openbsd.org>
Sat, 20 Nov 2021 18:10:52 +0000 (18:10 +0000)
commit3c46923daceb4b5ed245b7614cba2b938f412e14
tree9e663c34676459dabe1ab37a6c236d6b2ad2eb4b
parente0a955c7509f97297827e0142f27dc43870e01e3
Provide the bytestring APIs for libcrypto internal use.

Bring a copy of the bytestring APIs (CBB/CBS) from libssl, for use in
libcrypto - these are not exposed publicly.

Discussed with beck@ and tb@
lib/libcrypto/Makefile
lib/libcrypto/bytestring/bs_ber.c [new file with mode: 0644]
lib/libcrypto/bytestring/bs_cbb.c [new file with mode: 0644]
lib/libcrypto/bytestring/bs_cbs.c [new file with mode: 0644]
lib/libcrypto/bytestring/bytestring.h [new file with mode: 0644]