diff options
author | Günther Deschner <gd@samba.org> | 2008-02-17 03:10:21 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-17 03:10:21 +0100 |
commit | 10c3957d040235b66be1de611aa66aed75e8bef3 (patch) | |
tree | 23348bc345c9dd0601bf19dbc1b8e0fb1d4d2003 /source3/rpc_parse | |
parent | 5b8ebcf397e40bf1f9555c34fadbab2d7b5bf717 (diff) | |
download | samba-10c3957d040235b66be1de611aa66aed75e8bef3.tar.gz samba-10c3957d040235b66be1de611aa66aed75e8bef3.tar.bz2 samba-10c3957d040235b66be1de611aa66aed75e8bef3.zip |
Move policy_handle_is_valid out of parse_lsa.c
Guenther
(This used to be commit c396f45e7ddc8d6ce0efa0cda2996ca513ecbdb7)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_lsa.c | 12 | ||||
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 10 |
2 files changed, 10 insertions, 12 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index 80e90a8265..3d65b9ca3b 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -1206,15 +1206,3 @@ bool lsa_io_r_lookup_names4(const char *desc, LSA_R_LOOKUP_NAMES4 *out, prs_stru return True; } - -/******************************************************************* - Reads or writes an LUID_ATTR structure. -********************************************************************/ - -bool policy_handle_is_valid(const POLICY_HND *hnd) -{ - POLICY_HND zero_pol; - - ZERO_STRUCT(zero_pol); - return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? False : True ); -} diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index 9e1937ea32..418f857df8 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/rpc_parse/parse_misc.c @@ -1859,4 +1859,14 @@ uint32 str_len_uni(UNISTR *source) return i; } +/******************************************************************* + Verifies policy handle +********************************************************************/ +bool policy_handle_is_valid(const POLICY_HND *hnd) +{ + POLICY_HND zero_pol; + + ZERO_STRUCT(zero_pol); + return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? false : true ); +} |