+
+Tue Sep 05 22:10:34 1995 Chris Provenzano (proven@mit.edu)
+
+ * cnv_tkt_skey.c, getcred.c, k524init.c, krb524d.c, test.c :
+ Remove krb5_enctype references, and replace with
+ krb5_keytype where appropriate.
+
Thu Aug 24 18:40:22 1995 Theodore Y. Ts'o <tytso@dcl>
* .Sanitize: Update file list
return ret;
}
- if (v5etkt->session->keytype != KEYTYPE_DES ||
+ if (v5etkt->session->keytype != KEYTYPE_DES_CBC_CRC ||
v5etkt->session->length != sizeof(C_Block)) {
if (krb524_debug)
fprintf(stderr, "v5 session keyblock type %d length %d != C_Block size %d\n",
v5creds.client = client;
v5creds.server = server;
v5creds.times.endtime = 0;
- v5creds.keyblock.keytype = KEYTYPE_DES;
+ v5creds.keyblock.keytype = KEYTYPE_DES_CBC_MD5;
if (ret = krb5_get_credentials(context, 0, cc, &v5creds)) {
com_err("getcred", ret, "getting V5 credentials");
exit(1);
increds.client = client;
increds.server = server;
increds.times.endtime = 0;
- increds.keyblock.keytype = KEYTYPE_DES;
+ increds.keyblock.keytype = KEYTYPE_DES_CBC_MD5;
if ((code = krb5_get_credentials(context, 0, cc, &increds, &v5creds))) {
com_err("k524init", code, "getting V5 credentials");
exit(1);
cleanup_and_exit(1, context);
}
- master_keyblock.keytype = KEYTYPE_DES;
- krb5_use_cstype(context, &master_encblock,
- krb5_keytype_array[master_keyblock.keytype]->
- system->proto_enctype);
+ master_keyblock.keytype = KEYTYPE_DES_CBC_MD5;
+ krb5_use_keytype(context, &master_encblock, master_keyblock.keytype);
if ((ret = krb5_db_fetch_mkey(context, master_princ, &master_encblock,
FALSE, /* non-manual type-in */
FALSE, /* irrelevant, given prev. arg */
if (debug)
printf("V5 ticket decoded\n");
- /* XXX KEYTYPE_DES shouldn't be hardcoded here. Should be
+ /* XXX KEYTYPE_DES_CBC_MD5 shouldn't be hardcoded here. Should be
derived from the ticket. */
- if ((ret = lookup_service_key(context, v5tkt->server, KEYTYPE_DES,
+ if ((ret = lookup_service_key(context, v5tkt->server, KEYTYPE_DES_CBC_MD5,
&service_key)))
goto error;
if (debug)
krb5_unparse_name(context, tkt->server, &p);
printf("Ticket: Server: %s\n", p);
free(p);
- printf("Ticket: EType: %d\n", tkt->enc_part.etype);
printf("Ticket: kvno: %d\n", tkt->enc_part.kvno);
printf("Ticket: Flags: 0x%08x\n", tkt->enc_part2->flags);
krb5_print_keyblock("Ticket: Session Keyblock",
increds.client = client;
increds.server = server;
increds.times.endtime = 0;
- increds.keyblock.keytype = KEYTYPE_DES;
+ increds.keyblock.keytype = KEYTYPE_DES_CBC_MD5;
if ((ret = krb5_get_credentials(context, 0, cc, &increds, &v5creds))) {
com_err("test", ret, "getting V5 credentials");
exit(1);
keybuf[i] += c;
}
- key.keytype = KEYTYPE_DES;
+ key.keytype = KEYTYPE_DES_CBC_MD5;
key.length = KEYSIZE; /* presumably */
key.contents = (krb5_octet *) keybuf;