libcli/auth: add some const to netlogon_creds_server_{init,step_check}()
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Mar 2015 15:26:03 +0000 (16:26 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 20 Mar 2015 19:43:11 +0000 (20:43 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/auth/credentials.c
libcli/auth/proto.h

index 06f5728c462fc5efd3a045813c14c145f03ab6da..91f37b770c6d46b1a69dcdb339526b8747c166d8 100644 (file)
@@ -419,7 +419,7 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
                                                                  const struct netr_Credential *client_challenge,
                                                                  const struct netr_Credential *server_challenge,
                                                                  const struct samr_Password *machine_password,
-                                                                 struct netr_Credential *credentials_in,
+                                                                 const struct netr_Credential *credentials_in,
                                                                  struct netr_Credential *credentials_out,
                                                                  uint32_t negotiate_flags)
 {
@@ -484,7 +484,7 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
 }
 
 NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
-                                struct netr_Authenticator *received_authenticator,
+                                const struct netr_Authenticator *received_authenticator,
                                 struct netr_Authenticator *return_authenticator)
 {
        if (!received_authenticator || !return_authenticator) {
index 0c319d32e7bfaf093f733aa3c69ed7f9a3b5b273..14237294fc9f08ae96abc4a54296b5692cb9bb07 100644 (file)
@@ -52,11 +52,11 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
                                                                  const struct netr_Credential *client_challenge,
                                                                  const struct netr_Credential *server_challenge,
                                                                  const struct samr_Password *machine_password,
-                                                                 struct netr_Credential *credentials_in,
+                                                                 const struct netr_Credential *credentials_in,
                                                                  struct netr_Credential *credentials_out,
                                                                  uint32_t negotiate_flags);
 NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
-                                struct netr_Authenticator *received_authenticator,
+                                const struct netr_Authenticator *received_authenticator,
                                 struct netr_Authenticator *return_authenticator) ;
 void netlogon_creds_decrypt_samlogon_validation(struct netlogon_creds_CredentialState *creds,
                                                uint16_t validation_level,