s3: Use \0 instead of NULL when 0-terminating a string
[Samba.git] / auth / auth_sam_reply.h
blobdea6501257b2fa184f7613fe0ea81ae928bc1247
1 #ifndef __AUTH_AUTH_SAM_REPLY_H__
2 #define __AUTH_AUTH_SAM_REPLY_H__
4 #undef _PRINTF_ATTRIBUTE
5 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
6 /* this file contains prototypes for functions that are private
7 * to this subsystem or library. These functions should not be
8 * used outside this particular subsystem! */
11 /* The following definitions come from auth/auth_sam_reply.c */
13 NTSTATUS auth_convert_user_info_dc_sambaseinfo(TALLOC_CTX *mem_ctx,
14 struct auth_user_info_dc *user_info_dc,
15 struct netr_SamBaseInfo **_sam);
16 NTSTATUS auth_convert_user_info_dc_saminfo3(TALLOC_CTX *mem_ctx,
17 struct auth_user_info_dc *user_info_dc,
18 struct netr_SamInfo3 **_sam3);
20 /**
21 * Make a user_info_dc struct from the info3 returned by a domain logon
23 NTSTATUS make_user_info_dc_netlogon_validation(TALLOC_CTX *mem_ctx,
24 const char *account_name,
25 uint16_t validation_level,
26 union netr_Validation *validation,
27 struct auth_user_info_dc **_user_info_dc);
29 /**
30 * Make a user_info_dc struct from the PAC_LOGON_INFO supplied in the krb5 logon
32 NTSTATUS make_user_info_dc_pac(TALLOC_CTX *mem_ctx,
33 struct PAC_LOGON_INFO *pac_logon_info,
34 struct auth_user_info_dc **_user_info_dc);
35 #undef _PRINTF_ATTRIBUTE
36 #define _PRINTF_ATTRIBUTE(a1, a2)
38 #endif /* __AUTH_AUTH_SAM_REPLY_H__ */