cli_credentials: Apply some const
authorVolker Lendecke <vl@samba.org>
Thu, 7 Sep 2017 10:34:34 +0000 (12:34 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 16 Sep 2017 10:28:17 +0000 (12:28 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Sep 16 12:28:17 CEST 2017 on sn-devel-144

auth/credentials/credentials.c
auth/credentials/credentials.h

index 1a4ec53..105c73c 100644 (file)
@@ -959,8 +959,9 @@ _PUBLIC_ void cli_credentials_guess(struct cli_credentials *cred,
  * Attach NETLOGON credentials for use with SCHANNEL
  */
 
-_PUBLIC_ void cli_credentials_set_netlogon_creds(struct cli_credentials *cred, 
-                                                struct netlogon_creds_CredentialState *netlogon_creds)
+_PUBLIC_ void cli_credentials_set_netlogon_creds(
+       struct cli_credentials *cred,
+       const struct netlogon_creds_CredentialState *netlogon_creds)
 {
        TALLOC_FREE(cred->netlogon_creds);
        if (netlogon_creds == NULL) {
index e75694a..9fe6a82 100644 (file)
@@ -158,8 +158,9 @@ void cli_credentials_set_secure_channel_type(struct cli_credentials *cred,
                                     enum netr_SchannelType secure_channel_type);
 void cli_credentials_set_password_last_changed_time(struct cli_credentials *cred,
                                                             time_t last_change_time);
-void cli_credentials_set_netlogon_creds(struct cli_credentials *cred, 
-                                       struct netlogon_creds_CredentialState *netlogon_creds);
+void cli_credentials_set_netlogon_creds(
+       struct cli_credentials *cred,
+       const struct netlogon_creds_CredentialState *netlogon_creds);
 NTSTATUS cli_credentials_set_krb5_context(struct cli_credentials *cred, 
                                          struct smb_krb5_context *smb_krb5_context);
 NTSTATUS cli_credentials_set_stored_principal(struct cli_credentials *cred,