krb5 commit: Remove unused struct and switch_to stubs

Benjamin Kaduk kaduk at MIT.EDU
Thu Aug 23 15:32:41 EDT 2012


https://github.com/krb5/krb5/commit/c19826ccddd0d712ca581d67cdcf317c36dfaa85
commit c19826ccddd0d712ca581d67cdcf317c36dfaa85
Author: Kevin Wasserman <kevin.wasserman at painless-security.com>
Date:   Mon Jul 16 11:43:00 2012 -0400

    Remove unused struct and switch_to stubs
    
    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 at painless-security.com>
    
    ticket: 7236 (new)
    target_version: 1.10.4
    tags: pullup

 src/lib/krb5/ccache/cc_mslsa.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c
index de1dcb3..698b62a 100644
--- a/src/lib/krb5/ccache/cc_mslsa.c
+++ b/src/lib/krb5/ccache/cc_mslsa.c
@@ -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 */


More information about the cvs-krb5 mailing list