summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/krb5/copy_ccache.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2008-08-27 16:36:00 +0000
committerKen Raeburn <raeburn@mit.edu>2008-08-27 16:36:00 +0000
commit8acb29c6f3259749c85985c2df6b0cbd870c52f6 (patch)
tree0a79e57cf8714e3a10df69586ce445abe7c36a31 /src/lib/gssapi/krb5/copy_ccache.c
parent6f207872f88b0c63e0ec81041f8c54b6b68f73f5 (diff)
downloadkrb5-8acb29c6f3259749c85985c2df6b0cbd870c52f6.tar.gz
krb5-8acb29c6f3259749c85985c2df6b0cbd870c52f6.tar.xz
krb5-8acb29c6f3259749c85985c2df6b0cbd870c52f6.zip
Based on patch from lxs, with some changes:
Add several new gcc warning flags, used in the KfM build process. Put declarations before code. Fix a bunch of signed/unsigned type mixes, mostly by changing variable types to unsigned int. Fix constness in handling name of default ccache name. Make sure functions get declared with prototypes: krb5int_pthread_loaded krb5int_gmt_mktime krb5int_aes_encrypt krb5int_aes_decrypt gssint_mecherrmap_init gssint_mecherramp_get. Don't shadow global names: stat accept index open encrypt. Fix variable shadowing in LDAP ASN.1 support. Don't define unused krb5int_local_addresses. Don't export internal krb5_change_set_password. Fix error return indications from gssint_oid_to_mech. Create and use k5-gmt_mktime.h to provide one global declaration of krb5int_gmt_mktime, needed before we've generated krb5.h on some platforms. Not incorporated from initial patch: const changes in function signatures. ticket: 6096 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20697 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/krb5/copy_ccache.c')
-rw-r--r--src/lib/gssapi/krb5/copy_ccache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/gssapi/krb5/copy_ccache.c b/src/lib/gssapi/krb5/copy_ccache.c
index 8ade9c5da8..8553d92dba 100644
--- a/src/lib/gssapi/krb5/copy_ccache.c
+++ b/src/lib/gssapi/krb5/copy_ccache.c
@@ -6,7 +6,7 @@ gss_krb5int_copy_ccache(minor_status, cred_handle, out_ccache)
gss_cred_id_t cred_handle;
krb5_ccache out_ccache;
{
- OM_uint32 stat;
+ OM_uint32 major_status;
krb5_gss_cred_id_t k5creds;
krb5_cc_cursor cursor;
krb5_creds creds;
@@ -14,9 +14,9 @@ gss_krb5int_copy_ccache(minor_status, cred_handle, out_ccache)
krb5_context context;
/* validate the cred handle */
- stat = krb5_gss_validate_cred(minor_status, cred_handle);
- if (stat)
- return(stat);
+ major_status = krb5_gss_validate_cred(minor_status, cred_handle);
+ if (major_status)
+ return(major_status);
k5creds = (krb5_gss_cred_id_t) cred_handle;
code = k5_mutex_lock(&k5creds->lock);