]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove unused struct and switch_to stubs
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Mon, 16 Jul 2012 15:43:00 +0000 (11:43 -0400)
committerTom Yu <tlyu@mit.edu>
Mon, 27 Aug 2012 23:27:28 +0000 (19:27 -0400)
Only one mslsa ccache is supported, so switch_to is not needed.
Likewise, struct krb5int_lcc_iterator is unneccesary.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
(cherry picked from commit c19826ccddd0d712ca581d67cdcf317c36dfaa85)

ticket: 7236
version_fixed: 1.10.4
status: resolved

src/lib/krb5/ccache/cc_mslsa.c

index de1dcb3b026a604b23b00e8f78f5372be3bd143b..698b62a244fb6f663ecbdaafbbe1a2cf268888b7 100644 (file)
@@ -2738,10 +2738,6 @@ krb5_lcc_get_flags(krb5_context context, krb5_ccache id, krb5_flags *flags)
     return KRB5_OK;
 }
 
-struct krb5int_lcc_iterator {
-    int id;
-};
-
 static krb5_error_code KRB5_CALLCONV
 krb5_lcc_ptcursor_new(krb5_context context, krb5_cc_ptcursor *cursor)
 {
@@ -2784,12 +2780,6 @@ krb5_lcc_ptcursor_free(krb5_context context, krb5_cc_ptcursor *cursor)
     return 0;
 }
 
-static krb5_error_code KRB5_CALLCONV
-krb5_lcc_switch_to(krb5_context context, krb5_ccache id)
-{
-    return 0;
-}
-
 const krb5_cc_ops krb5_lcc_ops = {
     0,
     "MSLSA",
@@ -2816,6 +2806,6 @@ const krb5_cc_ops krb5_lcc_ops = {
     NULL, /* wasdefault */
     NULL, /* lock */
     NULL, /* unlock */
-    krb5_lcc_switch_to,
+    NULL, /* switch_to */
 };
 #endif /* _WIN32 */