krb5_error_code kret;
char ccname[128];
krb5_keytab keytab;
- extern krb5_kt_ops krb5_ktf_writable_ops;
sprintf(ccname, "temp_kt_%d", (int) getpid());
if (!(kret = krb5_kt_resolve(kcontext, ccname, &keytab)) &&
(krb5_pointer) keytab, KV5M_KEYTAB)) &&
!(kret = krb5_kt_close(kcontext, keytab))) {
sprintf(ccname, "WRFILE:temp_kt_%d", (int) getpid());
- if ((kret = krb5_kt_resolve(kcontext, ccname, &keytab)))
- kret = krb5_kt_register(kcontext, &krb5_ktf_writable_ops);
- else
- kret = krb5_kt_close(kcontext, keytab);
- if (!kret &&
- !(kret = krb5_kt_resolve(kcontext, ccname, &keytab)) &&
+ if (!(kret = krb5_kt_resolve(kcontext, ccname, &keytab)) &&
!(kret = ser_data(verbose, "> Resolved WRFILE keytab",
(krb5_pointer) keytab, KV5M_KEYTAB)) &&
!(kret = krb5_kt_close(kcontext, keytab))) {
krb5_error_code retval;
char *dbname = 0;
int enctypedone = 0;
- extern krb5_kt_ops krb5_ktf_writable_ops;
int num_to_create;
char principal_string[BUFSIZ];
char *suffix = 0;
if (!(num_to_create && suffix)) usage(progname, 1);
-
- if ((retval = krb5_kt_register(test_context, &krb5_ktf_writable_ops))) {
- if (retval != KRB5_KT_TYPE_EXISTS) {
- com_err(progname, retval,
- "while registering writable key table functions");
- exit(1);
- }
- }
-
if (!enctypedone)
master_keyblock.enctype = DEFAULT_KDC_ENCTYPE;