+2005-06-29 Ken Raeburn <raeburn@mit.edu>
+
+ * t_ser.c (ser_data): Don't initialize db serialization code that
+ doesn't exist any more.
+ (ser_kcontext_test): Don't create and destroy databases.
+
2005-05-19 Sam Hartman <hartmans@mit.edu>
* kfree.c (krb5_free_keyblock_contents krb5_free_keyblock): Make
exit(1);
}
krb5_ser_context_init(ser_ctx);
- krb5_ser_db_context_init(ser_ctx);
krb5_ser_auth_context_init(ser_ctx);
krb5_ser_ccache_init(ser_ctx);
krb5_ser_rcache_init(ser_ctx);
krb5_error_code kret;
profile_t sprofile;
char dbname[128];
+ char *argv[] = { dbname, NULL };
sprintf(dbname, "temp_%d", (int) getpid());
sprofile = kcontext->profile;
!(kret = krb5_set_default_realm(kcontext, "this.is.a.test"))) {
if (!(kret = ser_data(verbose, "> Context with default realm",
(krb5_pointer) kcontext,
- KV5M_CONTEXT)) &&
- !(kret = krb5_db_create(kcontext, dbname,
- KRB5_KDB_CREATE_BTREE)) &&
- !(kret = krb5_db_set_name(kcontext, dbname)) &&
- !(kret = krb5_db_init(kcontext)) &&
- !(kret = ser_data(verbose, "> Context with open database",
- (krb5_pointer) kcontext,
- KV5M_CONTEXT)) &&
- !(kret = krb5_db_fini(kcontext)) &&
- !(kret = ser_data(verbose, "> Context with closed database",
- (krb5_pointer) kcontext,
KV5M_CONTEXT))) {
- krb5_db_destroy(kcontext, dbname);
if (verbose)
printf("* krb5_context test succeeded\n");
}