* t_ser.c (ser_ccache_test): Remove references to STDIO ccaches
authorTom Yu <tlyu@mit.edu>
Thu, 15 Aug 2002 06:20:19 +0000 (06:20 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 15 Aug 2002 06:20:19 +0000 (06:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14722 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/t_ser.c

index c650e9e98cf829ed7c15abd3cc4ac41cbd1be328..2803d7fe72d122dbdb0b15d3bf65821bfbb4163f 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-15  Tom Yu  <tlyu@mit.edu>
+
+       * t_ser.c (ser_ccache_test): Remove references to STDIO ccaches.
+
 2002-08-01  Tom Yu  <tlyu@mit.edu>
 
        * unparse.c (krb5_unparse_name_ext): Error out if passed a NULL
index be58044bb7048fcbe6a50167d8bb364c1977efba..534bf09661791bd9627df78d42472e9095546688 100644 (file)
@@ -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)