/* The following definitions come from lib/util_sid.c */
char *sid_to_fstring(fstring sidstr_out, const struct dom_sid *sid);
-char *sid_string_talloc(TALLOC_CTX *mem_ctx, const struct dom_sid *sid);
char *sid_string_dbg(const struct dom_sid *sid);
bool sid_linearize(uint8_t *outbuf, size_t len, const struct dom_sid *sid);
bool non_mappable_sid(struct dom_sid *sid);
return sidstr_out;
}
-/*****************************************************************
- Essentially a renamed dom_sid_string from
- ../libcli/security/dom_sid.c with a panic if it didn't work.
-*****************************************************************/
-
-char *sid_string_talloc(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
-{
- char *result = dom_sid_string(mem_ctx, sid);
- SMB_ASSERT(result != NULL);
- return result;
-}
-
/*****************************************************************
Useful function for debug lines.
*****************************************************************/
char *sid_string_dbg(const struct dom_sid *sid)
{
- return sid_string_talloc(talloc_tos(), sid);
+ char *result = dom_sid_string(talloc_tos(), sid);
+ SMB_ASSERT(result != NULL);
+ return result;
}
/*****************************************************************