]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove indirection around ccselect choose method
authorRobbie Harwood <rharwood@redhat.com>
Wed, 23 Aug 2017 18:55:55 +0000 (14:55 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 5 Sep 2017 03:39:54 +0000 (23:39 -0400)
src/lib/krb5/ccache/ccselect.c

index ee4b83a9b09459ab439f9eba511d1d38c18d6c67..df2115c2cbb7716d90a5f20c68693cd390e8c612 100644 (file)
@@ -115,14 +115,6 @@ cleanup:
     return ret;
 }
 
-static krb5_error_code
-choose(krb5_context context, struct ccselect_module_handle *h,
-       krb5_principal server, krb5_ccache *cache_out,
-       krb5_principal *princ_out)
-{
-    return h->vt.choose(context, h->data, server, cache_out, princ_out);
-}
-
 krb5_error_code KRB5_CALLCONV
 krb5_cc_select(krb5_context context, krb5_principal server,
                krb5_ccache *cache_out, krb5_principal *princ_out)
@@ -171,7 +163,7 @@ krb5_cc_select(krb5_context context, krb5_principal server,
             h = *hp;
             if (h->priority != priority)
                 continue;
-            ret = choose(context, h, server, &cache, &princ);
+            ret = h->vt.choose(context, h->data, server, &cache, &princ);
             if (ret == 0) {
                 TRACE_CCSELECT_MODCHOICE(context, h->vt.name, server, cache,
                                          princ);