+2002-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb5_stash.c (kdb5_stash): Call krb5_c_valid_enctype instead of
+ valid_enctype.
+ * kdb5_util.c (main, open_db_and_mkey): Likewise.
+ * loadv4.c (load_v4db): Likewise.
+
2002-01-08 Sam Hartman <hartmans@mit.edu>
* kdb5_create.c (kdb5_create): Load strong random data
void
kdb5_stash(argc, argv)
-int argc;
-char *argv[];
+ int argc;
+ char *argv[];
{
extern char *optarg;
extern int optind;
}
}
- if (!valid_enctype(master_keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(master_keyblock.enctype)) {
char tmp[32];
if (krb5_enctype_to_string(master_keyblock.enctype, tmp, sizeof(tmp)))
com_err(argv[0], KRB5_PROG_KEYTYPE_NOSUPP,
master_keyblock.enctype = global_params.enctype;
if ((master_keyblock.enctype != ENCTYPE_UNKNOWN) &&
- (!valid_enctype(master_keyblock.enctype))) {
+ (!krb5_c_valid_enctype(master_keyblock.enctype))) {
com_err(argv[0], KRB5_PROG_KEYTYPE_NOSUPP,
"while setting up enctype %d", master_keyblock.enctype);
}
/* If no encryption type is set, use the default */
if (master_keyblock.enctype == ENCTYPE_UNKNOWN) {
master_keyblock.enctype = DEFAULT_KDC_ENCTYPE;
- if (!valid_enctype(master_keyblock.enctype))
+ if (!krb5_c_valid_enctype(master_keyblock.enctype))
com_err(progname, KRB5_PROG_KEYTYPE_NOSUPP,
"while setting up enctype %d",
master_keyblock.enctype);
void
load_v4db(argc, argv)
-int argc;
-char *argv[];
+ int argc;
+ char *argv[];
{
krb5_error_code retval;
/* The kdb library will default to this, but it is convenient to
return;
}
- if (!valid_enctype(master_keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(master_keyblock.enctype)) {
com_err(PROGNAME, KRB5_PROG_KEYTYPE_NOSUPP,
"while setting up enctype %d", master_keyblock.enctype);
krb5_free_context(context);
+2002-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * do_as_req.c (process_as_req): Call krb5_c_valid_enctype instead
+ of valid_enctype.
+ * do_tgs_req.c (process_tgs_req): Likewise.
+ * kdc_util.c (select_session_keytype): Likewise.
+ (comp_cksum): Similarly for valid_cksumtype, is_coll_proof_cksum.
+
2002-02-20 Ken Raeburn <raeburn@mit.edu>
* network.c: Include foreachaddr.c.
/*ARGSUSED*/
krb5_error_code
process_as_req(request, from, portnum, response)
-register krb5_kdc_req *request;
-const krb5_fulladdr *from; /* who sent it ? */
-int portnum;
-krb5_data **response; /* filled in with a response packet */
+ krb5_kdc_req *request;
+ const krb5_fulladdr *from; /* who sent it ? */
+ int portnum;
+ krb5_data **response; /* filled in with a response packet */
{
krb5_db_entry client, server;
client_key = (krb5_key_data *) NULL;
for (i = 0; i < request->nktypes; i++) {
useenctype = request->ktype[i];
- if (!valid_enctype(useenctype))
+ if (!krb5_c_valid_enctype(useenctype))
continue;
if (!krb5_dbe_find_enctype(kdc_context, &client, useenctype, -1,
}
etype = request->second_ticket[st_idx]->enc_part2->session->enctype;
- if (!valid_enctype(etype)) {
+ if (!krb5_c_valid_enctype(etype)) {
status = "BAD_ETYPE_IN_2ND_TKT";
errcode = KRB5KDC_ERR_ETYPE_NOSUPP;
goto cleanup;
krb5_error_code retval;
krb5_boolean valid;
- if (!valid_cksumtype(his_cksum->checksum_type))
+ if (!krb5_c_valid_cksumtype(his_cksum->checksum_type))
return KRB5KDC_ERR_SUMTYPE_NOSUPP;
/* must be collision proof */
- if (!is_coll_proof_cksum(his_cksum->checksum_type))
+ if (!krb5_c_is_coll_proof_cksum(his_cksum->checksum_type))
return KRB5KRB_AP_ERR_INAPP_CKSUM;
/* verify checksum */
int i;
for (i = 0; i < nktypes; i++) {
- if (!valid_enctype(ktype[i]))
+ if (!krb5_c_valid_enctype(ktype[i]))
continue;
if (!krb5_is_permitted_enctype(context, ktype[i]))
+2002-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * decrypt_tk.c (krb5_decrypt_tkt_part): Call krb5_c_valid_enctype
+ instead of valid_enctype.
+ * encode_kdc.c (krb5_encode_kdc_rep): Likewise.
+ * gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Likewise.
+ * gic_keytab.c (krb5_get_as_key_keytab): Likewise.
+ * in_tkt_ktb.c (keytab_keyproc): Likewise.
+ * in_tkt_sky.c (skey_keyproc): Likewise.
+ * init_ctx.c (krb5_set_default_in_tkt_ktypes,
+ krb5_set_default_tgs_enctypes): Likewise.
+ * send_tgs.c (krb5_send_tgs): Likewise.
+
+ * mk_safe.c (krb5_mk_safe_basic): Call krb5_c_valid_cksumtype,
+ krb5_c_is_coll_proof_cksum, krb5_c_is_keyed_cksum instead of
+ non-prefixed forms.
+ * rd_safe.c (krb5_rd_safe_basic): Likewise.
+
2002-03-28 Sam Hartman <hartmans@mit.edu>
* Makefile.in : New file init_keyblock.c
krb5_data scratch;
krb5_error_code retval;
- if (!valid_enctype(ticket->enc_part.enctype))
+ if (!krb5_c_valid_enctype(ticket->enc_part.enctype))
return KRB5_PROG_ETYPE_NOSUPP;
scratch.length = ticket->enc_part.ciphertext.length;
krb5_enc_kdc_rep_part tmp_encpart;
krb5_keyusage usage;
- if (!valid_enctype(dec_rep->enc_part.enctype))
+ if (!krb5_c_valid_enctype(dec_rep->enc_part.enctype))
return KRB5_PROG_ETYPE_NOSUPP;
switch (type) {
/* didn't find it in the cache so try and get one */
/* with current tgt. */
- if (!valid_enctype(tgt.keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(tgt.keyblock.enctype)) {
retval = KRB5_PROG_ETYPE_NOSUPP;
goto cleanup;
}
/* not in the cache so try and get one with our current tgt. */
- if (!valid_enctype(tgt.keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(tgt.keyblock.enctype)) {
retval = KRB5_PROG_ETYPE_NOSUPP;
goto cleanup;
}
/* got/finally have tgt! try for the creds */
- if (!valid_enctype(tgt.keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(tgt.keyblock.enctype)) {
retval = KRB5_PROG_ETYPE_NOSUPP;
goto cleanup;
}
as_key->length = 0;
}
- if (!valid_enctype(etype))
+ if (!krb5_c_valid_enctype(etype))
return(KRB5_PROG_ETYPE_NOSUPP);
if ((ret = krb5_kt_get_entry(context, keytab, client,
kt_id = arg->keytab;
- if (!valid_enctype(type))
+ if (!krb5_c_valid_enctype(type))
return KRB5_PROG_ETYPE_NOSUPP;
if (kt_id == NULL)
keyblock = (const krb5_keyblock *)keyseed;
- if (!valid_enctype(type))
+ if (!krb5_c_valid_enctype(type))
return KRB5_PROG_ETYPE_NOSUPP;
if ((retval = krb5_copy_keyblock(context, keyblock, &realkey)))
if (ktypes) {
for (i = 0; ktypes[i]; i++) {
- if (!valid_enctype(ktypes[i]))
+ if (!krb5_c_valid_enctype(ktypes[i]))
return KRB5_PROG_ETYPE_NOSUPP;
}
if (ktypes) {
for (i = 0; ktypes[i]; i++) {
- if (!valid_enctype(ktypes[i]))
+ if (!krb5_c_valid_enctype(ktypes[i]))
return KRB5_PROG_ETYPE_NOSUPP;
}
krb5_checksum safe_checksum;
krb5_data *scratch1, *scratch2;
- if (!valid_cksumtype(sumtype))
+ if (!krb5_c_valid_cksumtype(sumtype))
return KRB5_PROG_SUMTYPE_NOSUPP;
- if (!is_coll_proof_cksum(sumtype) || !is_keyed_cksum(sumtype))
+ if (!krb5_c_is_coll_proof_cksum(sumtype)
+ || !krb5_c_is_keyed_cksum(sumtype))
return KRB5KRB_AP_ERR_INAPP_CKSUM;
safemsg.user_data = *userdata;
if ((retval = decode_krb5_safe(inbuf, &message)))
return retval;
- if (!valid_cksumtype(message->checksum->checksum_type)) {
+ if (!krb5_c_valid_cksumtype(message->checksum->checksum_type)) {
retval = KRB5_PROG_SUMTYPE_NOSUPP;
goto cleanup;
}
- if (!is_coll_proof_cksum(message->checksum->checksum_type) ||
- !is_keyed_cksum(message->checksum->checksum_type)) {
+ if (!krb5_c_is_coll_proof_cksum(message->checksum->checksum_type) ||
+ !krb5_c_is_keyed_cksum(message->checksum->checksum_type)) {
retval = KRB5KRB_AP_ERR_INAPP_CKSUM;
goto cleanup;
}
if (ktypes) {
/* Check passed ktypes and make sure they're valid. */
for (tgsreq.nktypes = 0; ktypes[tgsreq.nktypes]; tgsreq.nktypes++) {
- if (!valid_enctype(ktypes[tgsreq.nktypes]))
+ if (!krb5_c_valid_enctype(ktypes[tgsreq.nktypes]))
return KRB5_PROG_ETYPE_NOSUPP;
}
tgsreq.ktype = (krb5_enctype *)ktypes;
+2002-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb5_mkdums.c (main): Call krb5_c_valid_enctype instead of
+ valid_enctype.
+
2001-11-19 Ezra Peisach <epeisach@mit.edu>
* kdb5_mkdums.c (main): Invoke krb5_free_context when finished.
int
main(argc, argv)
-int argc;
-char *argv[];
+ int argc;
+ char *argv[];
{
extern char *optarg;
int optchar, i, n;
if (!enctypedone)
master_keyblock.enctype = DEFAULT_KDC_ENCTYPE;
- if (!valid_enctype(master_keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(master_keyblock.enctype)) {
com_err(progname, KRB5_PROG_ETYPE_NOSUPP,
"while setting up enctype %d", master_keyblock.enctype);
exit(1);
+2002-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb5_verify.c (main): Call krb5_c_valid_enctype instead of
+ valid_enctype.
+
2001-11-19 Ezra Peisach <epeisach@mit.edu>
* kdb5_verify.c (main): Use krb5_free_unparsed_name() to free up
int
main(argc, argv)
-int argc;
-char *argv[];
+ int argc;
+ char *argv[];
{
extern char *optarg;
int optchar, i, n;
if (!enctypedone)
master_keyblock.enctype = DEFAULT_KDC_ENCTYPE;
- if (!valid_enctype(master_keyblock.enctype)) {
+ if (!krb5_c_valid_enctype(master_keyblock.enctype)) {
com_err(progname, KRB5_PROG_ETYPE_NOSUPP,
"while setting up enctype %d", master_keyblock.enctype);
exit(1);