From ef990008f22a0790442c0259defdfdcf0a28eb3d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 21 Sep 2021 14:35:17 +0200 Subject: [PATCH] libcli: Remove unused security_token_is_sid_string() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- libcli/security/security_token.c | 14 -------------- libcli/security/security_token.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/libcli/security/security_token.c b/libcli/security/security_token.c index 186b6434006..f8cf2a7be09 100644 --- a/libcli/security/security_token.c +++ b/libcli/security/security_token.c @@ -74,20 +74,6 @@ bool security_token_is_sid(const struct security_token *token, const struct dom_ return false; } -bool security_token_is_sid_string(const struct security_token *token, const char *sid_string) -{ - bool ret; - struct dom_sid sid; - - ret = dom_sid_parse(sid_string, &sid); - if (!ret) { - return false; - } - - ret = security_token_is_sid(token, &sid); - return ret; -} - bool security_token_is_system(const struct security_token *token) { return security_token_is_sid(token, &global_sid_System); diff --git a/libcli/security/security_token.h b/libcli/security/security_token.h index 5c5b30bac1c..37230461adc 100644 --- a/libcli/security/security_token.h +++ b/libcli/security/security_token.h @@ -41,8 +41,6 @@ void security_token_debug(int dbg_class, int dbg_lev, const struct security_toke bool security_token_is_sid(const struct security_token *token, const struct dom_sid *sid); -bool security_token_is_sid_string(const struct security_token *token, const char *sid_string); - bool security_token_is_system(const struct security_token *token); bool security_token_is_anonymous(const struct security_token *token);