summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-09-07 12:34:03 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-09-16 08:36:18 +0200
commit602ec8884bc276b63af38dcf04e107bcd659680f (patch)
tree092dea03ab58da9f952267a8a0b76a307902de21 /libcli
parentaea214fce64f64eb71094248ac0b2c32bcc065f4 (diff)
downloadsamba-602ec8884bc276b63af38dcf04e107bcd659680f.tar.gz
libcli: Apply some const
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/credentials.c5
-rw-r--r--libcli/auth/proto.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c
index ddff5e9d924..acf88c923aa 100644
--- a/libcli/auth/credentials.c
+++ b/libcli/auth/credentials.c
@@ -811,8 +811,9 @@ union netr_LogonLevel *netlogon_creds_shallow_copy_logon(TALLOC_CTX *mem_ctx,
copy a netlogon_creds_CredentialState struct
*/
-struct netlogon_creds_CredentialState *netlogon_creds_copy(TALLOC_CTX *mem_ctx,
- struct netlogon_creds_CredentialState *creds_in)
+struct netlogon_creds_CredentialState *netlogon_creds_copy(
+ TALLOC_CTX *mem_ctx,
+ const struct netlogon_creds_CredentialState *creds_in)
{
struct netlogon_creds_CredentialState *creds = talloc_zero(mem_ctx, struct netlogon_creds_CredentialState);
diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h
index a03f45ed7f3..82febe74440 100644
--- a/libcli/auth/proto.h
+++ b/libcli/auth/proto.h
@@ -38,8 +38,9 @@ void netlogon_creds_client_authenticator(struct netlogon_creds_CredentialState *
struct netr_Authenticator *next);
bool netlogon_creds_client_check(struct netlogon_creds_CredentialState *creds,
const struct netr_Credential *received_credentials);
-struct netlogon_creds_CredentialState *netlogon_creds_copy(TALLOC_CTX *mem_ctx,
- struct netlogon_creds_CredentialState *creds_in);
+struct netlogon_creds_CredentialState *netlogon_creds_copy(
+ TALLOC_CTX *mem_ctx,
+ const struct netlogon_creds_CredentialState *creds_in);
/*****************************************************************
The above functions are common to the client and server interface