From 902bec309f5badec4b7cd5697463ee005b8613cb Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 15 Aug 2002 06:20:19 +0000 Subject: [PATCH] * t_ser.c (ser_ccache_test): Remove references to STDIO ccaches git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14722 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 4 ++++ src/lib/krb5/krb/t_ser.c | 22 +++------------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index c650e9e98..2803d7fe7 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,7 @@ +2002-08-15 Tom Yu + + * t_ser.c (ser_ccache_test): Remove references to STDIO ccaches. + 2002-08-01 Tom Yu * unparse.c (krb5_unparse_name_ext): Error out if passed a NULL diff --git a/src/lib/krb5/krb/t_ser.c b/src/lib/krb5/krb/t_ser.c index be58044bb..534bf0966 100644 --- a/src/lib/krb5/krb/t_ser.c +++ b/src/lib/krb5/krb/t_ser.c @@ -392,7 +392,6 @@ ser_ccache_test(kcontext, verbose) char princname[256]; krb5_ccache ccache; krb5_principal principal; - extern krb5_cc_ops krb5_scc_ops; sprintf(ccname, "temp_cc_%d", (int) getpid()); sprintf(princname, "zowie%d/instance%d@this.is.a.test", @@ -418,24 +417,9 @@ ser_ccache_test(kcontext, verbose) (krb5_pointer) ccache, KV5M_CCACHE)) && !(kret = krb5_cc_destroy(kcontext, ccache))) { krb5_free_principal(kcontext, principal); - sprintf(ccname, "STDIO:temp_cc_%d", (int) getpid()); - sprintf(princname, "xxx%d/i%d@this.is.a.test", - (int) getpid(), (int) getpid()); - if ((kret = krb5_cc_resolve(kcontext, ccname, &ccache))) - kret = krb5_cc_register(kcontext, &krb5_scc_ops, 1); - if (!kret && - !(kret = krb5_cc_resolve(kcontext, ccname, &ccache)) && - !(kret = ser_data(verbose, "> Resolved STDIO ccache", - (krb5_pointer) ccache, KV5M_CCACHE)) && - !(kret = krb5_parse_name(kcontext, princname, &principal)) && - !(kret = krb5_cc_initialize(kcontext, ccache, principal)) && - !(kret = ser_data(verbose, "> Initialized STDIO ccache", - (krb5_pointer) ccache, KV5M_CCACHE)) && - !(kret = krb5_cc_destroy(kcontext, ccache))) { - krb5_free_principal(kcontext, principal); - if (verbose) - printf("* ccache test succeeded\n"); - } + + if (verbose) + printf("* ccache test succeeded\n"); } } if (kret) -- 2.26.2