add support for binary sysctl payloads by handling them as hex
authorflorian <florian@openbsd.org>
Sat, 10 Feb 2018 05:53:58 +0000 (05:53 +0000)
committerflorian <florian@openbsd.org>
Sat, 10 Feb 2018 05:53:58 +0000 (05:53 +0000)
commita85810aae23fb95fc012978b8a12950e132df018
treef728b73f8ee89ffd8b78e4db326b6c792718159d
parent9798906b8a0a6367c5fe89a7af777dc8935fa69f
add support for binary sysctl payloads by handling them as hex
strings.

this was part of a demo showing how to implement the kernel side of
sysctl(3) for setting Semantically Opaque Interface Identifier key
material (for RFC 7217), but it seems to be the most straightforward
path toward integrating soiikey handling and rc.

Originally written by dlg, who commited it some time ago on my request.
I then backed it out again, now it's time to put it back in.

ok florian@ sthen@ naddy@ tb@

Man page bits tweaked & OK jmc
lib/libc/sys/sysctl.2
sbin/sysctl/sysctl.c