From: Ian Jackson Date: Sat, 28 Sep 2019 10:55:17 +0000 (+0100) Subject: style: util.[ch]: Introduce hex_encode_alloc name X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/36a81f9cfda6df8a79169e93a251e8e13b64f09c?hp=36a81f9cfda6df8a79169e93a251e8e13b64f09c style: util.[ch]: Introduce hex_encode_alloc name Prompted by review of 7be31e47b2a8 "util.[ch]: Factor out hex encoding and decoding utilities." which says The interface is a bit odd, but it will fit with the uses I have in mind. Not sure if it's the encode or decode interface which is referred to. Certainly there should be a non-allocating variant. I decided to rename the allocating one. The two separate buffer arguments to hex_decode are indeed a bit odd but IMO tolerable. Signed-off-by: Ian Jackson ---