netlogon_creds_cli: Avoid a static const struct
[bbaumbach/samba-autobuild/.git] / libcli / auth / schannel_state.h
index 017fdbe28d9af34e251551055f56f1c09f823f01..a333098458f8b0453592d96e5ceaa91db1069067 100644 (file)
 #define _LIBCLI_AUTH_SCHANNEL_STATE_H__
 
 NTSTATUS schannel_get_creds_state(TALLOC_CTX *mem_ctx,
-                                 const char *db_priv_dir,
+                                 struct loadparm_context *lp_ctx,
                                  const char *computer_name,
                                  struct netlogon_creds_CredentialState **creds);
 
 NTSTATUS schannel_save_creds_state(TALLOC_CTX *mem_ctx,
-                                  const char *db_priv_dir,
+                                  struct loadparm_context *lp_ctx,
                                   struct netlogon_creds_CredentialState *creds);
 
 NTSTATUS schannel_check_creds_state(TALLOC_CTX *mem_ctx,
-                                   const char *db_priv_dir,
+                                   struct loadparm_context *lp_ctx,
                                    const char *computer_name,
                                    struct netr_Authenticator *received_authenticator,
                                    struct netr_Authenticator *return_authenticator,
                                    struct netlogon_creds_CredentialState **creds_out);
 
+NTSTATUS schannel_get_challenge(struct loadparm_context *lp_ctx,
+                               struct netr_Credential *client_challenge,
+                               struct netr_Credential *server_challenge,
+                               const char *computer_name);
+
+NTSTATUS schannel_save_challenge(struct loadparm_context *lp_ctx,
+                                const struct netr_Credential *client_challenge,
+                                const struct netr_Credential *server_challenge,
+                                const char *computer_name);
+
+NTSTATUS schannel_delete_challenge(struct loadparm_context *lp_ctx,
+                                  const char *computer_name);
 #endif