summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_sid.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index e27c72dbc4..b28626cd66 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -202,17 +202,6 @@ char *sid_to_string(fstring sidstr_out, const DOM_SID *sid)
return sidstr_out;
}
-/*****************************************************************
- Useful function for debug lines.
-*****************************************************************/
-
-const char *sid_string_static(const DOM_SID *sid)
-{
- static fstring sid_str;
- sid_to_string(sid_str, sid);
- return sid_str;
-}
-
char *sid_string_talloc(TALLOC_CTX *mem_ctx, const DOM_SID *sid)
{
fstring sid_str;
@@ -223,11 +212,19 @@ char *sid_string_talloc(TALLOC_CTX *mem_ctx, const DOM_SID *sid)
return result;
}
+/*****************************************************************
+ Useful function for debug lines.
+*****************************************************************/
+
char *sid_string_dbg(const DOM_SID *sid)
{
return sid_string_talloc(debug_ctx(), sid);
}
+/*****************************************************************
+ Use with care!
+*****************************************************************/
+
char *sid_string_tos(const DOM_SID *sid)
{
return sid_string_talloc(talloc_tos(), sid);