lib: Add dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Thu, 18 Oct 2018 03:46:37 +0000 (05:46 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 12 Mar 2019 11:25:43 +0000 (11:25 +0000)
commite8bb1f65cd12f3243e5b965e1e9951567cd3ed48
tree8d08bddfeb76c95f40e3d7b353063f8e12aa973c
parentb9ac92992ceb2c4e4127908994a7ee2a5624030f
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

(cherry picked from commit 8b9d36221930a487ca5c51bf2e38ed04de9d50f7)
libcli/security/dom_sid.c
libcli/security/dom_sid.h