]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli: Remove unused security_token_has_sid_string()
authorVolker Lendecke <vl@samba.org>
Sat, 25 Sep 2021 05:58:47 +0000 (07:58 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Oct 2021 19:28:31 +0000 (19:28 +0000)
This should have been removed in ef990008f22, I just was not aware
it's there...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/security/security_token.c
libcli/security/security_token.h

index f8cf2a7be09cfb2ce4c0019595e286904b9bb53d..03e7bb70743ba29cd3309e16ddf7e29a06d54472 100644 (file)
@@ -95,20 +95,6 @@ bool security_token_has_sid(const struct security_token *token, const struct dom
        return false;
 }
 
-bool security_token_has_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_has_sid(token, &sid);
-       return ret;
-}
-
 bool security_token_has_builtin_guests(const struct security_token *token)
 {
        return security_token_has_sid(token, &global_sid_Builtin_Guests);
index 37230461adc55c55f618477f80e2cb5078e6cc80..15773df617fd41c5038c5811d4b9b2af520baf3c 100644 (file)
@@ -47,8 +47,6 @@ bool security_token_is_anonymous(const struct security_token *token);
 
 bool security_token_has_sid(const struct security_token *token, const struct dom_sid *sid);
 
-bool security_token_has_sid_string(const struct security_token *token, const char *sid_string);
-
 bool security_token_has_builtin_guests(const struct security_token *token);
 
 bool security_token_has_builtin_administrators(const struct security_token *token);