lib: Add dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Thu, 18 Oct 2018 03:46:37 +0000 (05:46 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 2 Nov 2018 19:11:11 +0000 (20:11 +0100)
commit8b9d36221930a487ca5c51bf2e38ed04de9d50f7
treea05970dddce35f4dd4b9a58da38c415e72b1f442
parent831ee63f54959168cf34f12d4590102f40448cc5
lib: Add dom_sid_str_buf

This is modeled after server_id_str_buf, which as an API to me is easier to
use: I can rely on the compiler to get the buffer size right.

It is designed to violate README.Coding's "Make use of helper variables", but
as this API is simple enough and the output should never be a surprise at all,
I think that's worth it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Nov  2 20:11:11 CET 2018 on sn-devel-144
libcli/security/dom_sid.c
libcli/security/dom_sid.h