* ccbase.c: the krb5_cc_resolve() function pointer ccresolver
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 13 Apr 2004 20:04:13 +0000 (20:04 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 13 Apr 2004 20:04:13 +0000 (20:04 +0000)
               must be of type KRB5_CALLCONV

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16245 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/ccbase.c

index ad73c2a5497765dcf313b42efd1d046cfb518c97..afafc17a73dbd12abd72e727e4a0c21ba629fdaa 100644 (file)
@@ -1,3 +1,10 @@
+2004-04-13  Jeffrey Altman <jaltman@mit.edu>
+
+    * ccbase.c:
+      krb5_cc_resolve() defines a function pointer ccresolver
+      which must be of type KRB5_CALLCONV
+
+
 2004-04-06  Jeffrey Altman <jaltman@mit.edu>
 
     * cc_mslsa.c:
index 9fff1ef0eaf7b10e300e22b65bd255ea22eaa513..47ada5080bb41b0e77b28aaffd4ce61a913ef515 100644 (file)
@@ -118,11 +118,12 @@ krb5_cc_resolve (krb5_context context, const char *name, krb5_ccache *cache)
     }
 
     pfxlen = cp - name;
+
     resid = name + pfxlen + 1;
-       
+
     pfx = malloc (pfxlen+1);
     if (!pfx)
-       return ENOMEM;
+        return ENOMEM;
 
     memcpy (pfx, name, pfxlen);
     pfx[pfxlen] = '\0';
@@ -136,7 +137,7 @@ krb5_cc_resolve (krb5_context context, const char *name, krb5_ccache *cache)
     }
     for (tlist = cc_typehead; tlist; tlist = tlist->next) {
        if (strcmp (tlist->ops->prefix, pfx) == 0) {
-           krb5_error_code (*ccresolver)() = tlist->ops->resolve;
+           krb5_error_code (KRB5_CALLCONV *ccresolver)() = tlist->ops->resolve;
            k5_mutex_unlock(&cc_typelist_lock);
            free(pfx);
            return (*ccresolver)(context, cache, resid);