auth/common_auth.h Add a few more 'common' functions
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 May 2010 03:38:08 +0000 (13:38 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Jul 2010 04:36:29 +0000 (14:36 +1000)
This helps ensure that we don't have different prototypes for the
different implementaitons of these functions.

Andrew Bartlett

auth/common_auth.h

index 86ffc0fa23a33419099056447472e2100e90c7f4..1663755594df0c2952d0bc5bb1f6a4226fadb270 100644 (file)
@@ -59,6 +59,7 @@ struct auth_usersupplied_info
        } password;
        uint32_t flags;
 };
+struct auth_serversupplied_info;
 
 /* Shared prototypes for functions that may be replaced using s3compat, to ensure things stay in sync */
 NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
@@ -89,3 +90,8 @@ NTSTATUS kerberos_return_pac(TALLOC_CTX *mem_ctx,
                             time_t renewable_time,
                             const char *impersonate_princ_s,
                             struct PAC_LOGON_INFO **logon_info);
+NTSTATUS auth_samba4_init(void);
+NTSTATUS check_sam_security(const DATA_BLOB *challenge,
+                           TALLOC_CTX *mem_ctx,
+                           const struct auth_usersupplied_info *user_info,
+                           struct auth_serversupplied_info **server_info);