svn rev #22955: trunk/src/lib/gssapi/krb5/
lhoward@MIT.EDU
lhoward at MIT.EDU
Tue Oct 20 10:14:46 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22955
Commit By: lhoward
Log Message:
use ANSI prototypes for acquire_XXX_cred, and fix cast to calling acquire_accept_cred()
Changed Files:
U trunk/src/lib/gssapi/krb5/acquire_cred.c
Modified: trunk/src/lib/gssapi/krb5/acquire_cred.c
===================================================================
--- trunk/src/lib/gssapi/krb5/acquire_cred.c 2009-10-20 13:51:40 UTC (rev 22954)
+++ trunk/src/lib/gssapi/krb5/acquire_cred.c 2009-10-20 14:14:46 UTC (rev 22955)
@@ -138,12 +138,11 @@
*/
static OM_uint32
-acquire_accept_cred(context, minor_status, desired_name, output_name, cred)
- krb5_context context;
- OM_uint32 *minor_status;
- krb5_gss_name_t desired_name;
- krb5_gss_name_t *output_name;
- krb5_gss_cred_id_rec *cred;
+acquire_accept_cred(krb5_context context,
+ OM_uint32 *minor_status,
+ krb5_gss_name_t desired_name,
+ krb5_gss_name_t *output_name,
+ krb5_gss_cred_id_rec *cred)
{
krb5_error_code code;
krb5_principal princ;
@@ -219,12 +218,11 @@
*/
static OM_uint32
-acquire_init_cred(context, minor_status, desired_name, output_name, cred)
- krb5_context context;
- OM_uint32 *minor_status;
- krb5_gss_name_t desired_name;
- krb5_gss_name_t *output_name;
- krb5_gss_cred_id_rec *cred;
+acquire_init_cred(krb5_context context,
+ OM_uint32 *minor_status,
+ krb5_gss_name_t desired_name,
+ krb5_gss_name_t *output_name,
+ krb5_gss_cred_id_rec *cred)
{
krb5_error_code code;
krb5_ccache ccache;
@@ -571,8 +569,9 @@
#ifndef LEAN_CLIENT
if ((cred_usage == GSS_C_ACCEPT) ||
(cred_usage == GSS_C_BOTH))
- if ((ret = acquire_accept_cred(context, minor_status, desired_name,
- &(cred->name), cred))
+ if ((ret = acquire_accept_cred(context, minor_status,
+ (krb5_gss_name_t)desired_name,
+ &cred->name, cred))
!= GSS_S_COMPLETE) {
if (cred->name)
kg_release_name(context, 0, &cred->name);
More information about the cvs-krb5
mailing list