summaryrefslogtreecommitdiff
path: root/source4/auth/credentials
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-05-24 07:32:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:32 -0500
commitcdc64c448df49676c96f87d106af8de0c467651f (patch)
tree341b178e8bc20e6b132382f8fce05204978ddd9d /source4/auth/credentials
parenta665cccd2ef81e704e90bb228bbd14c0afb031af (diff)
downloadsamba-cdc64c448df49676c96f87d106af8de0c467651f.tar.gz
samba-cdc64c448df49676c96f87d106af8de0c467651f.tar.bz2
samba-cdc64c448df49676c96f87d106af8de0c467651f.zip
r15853: started the process of removing the warnings now that
talloc_set_destructor() is type safe. The end result will be lots less use of void*, and less calls to talloc_get_type() (This used to be commit 6b4c085b862c0932b80b93e316396a53b993544c)
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r--source4/auth/credentials/credentials_krb5.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source4/auth/credentials/credentials_krb5.c b/source4/auth/credentials/credentials_krb5.c
index 29b70d9a53..7d53caddfa 100644
--- a/source4/auth/credentials/credentials_krb5.c
+++ b/source4/auth/credentials/credentials_krb5.c
@@ -104,16 +104,15 @@ int cli_credentials_set_from_ccache(struct cli_credentials *cred,
}
/* Free a memory ccache */
-static int free_mccache(void *ptr) {
- struct ccache_container *ccc = ptr;
+static int free_mccache(struct ccache_container *ccc)
+{
krb5_cc_destroy(ccc->smb_krb5_context->krb5_context, ccc->ccache);
return 0;
}
/* Free a disk-based ccache */
-static int free_dccache(void *ptr) {
- struct ccache_container *ccc = ptr;
+static int free_dccache(struct ccache_container *ccc) {
krb5_cc_close(ccc->smb_krb5_context->krb5_context, ccc->ccache);
return 0;
@@ -273,11 +272,10 @@ int cli_credentials_get_ccache(struct cli_credentials *cred,
return ret;
}
-static int free_gssapi_creds(void *ptr) {
+static int free_gssapi_creds(struct gssapi_creds_container *gcc)
+{
OM_uint32 min_stat, maj_stat;
- struct gssapi_creds_container *gcc = ptr;
- maj_stat = gss_release_cred(&min_stat,
- &gcc->creds);
+ maj_stat = gss_release_cred(&min_stat, &gcc->creds);
return 0;
}