From: Chris Provenzano Date: Wed, 6 Sep 1995 03:20:42 +0000 (+0000) Subject: * kdb5_stash.c : Remove krb5_enctype references, and replace with X-Git-Tag: krb5-1.0-beta6~1194 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a54fb8b7c2b1a54401bac2b0a7496dbe9f1625d;p=krb5.git * kdb5_stash.c : Remove krb5_enctype references, and replace with krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6663 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/stash/ChangeLog b/src/admin/stash/ChangeLog index 0d578c460..d8554835b 100644 --- a/src/admin/stash/ChangeLog +++ b/src/admin/stash/ChangeLog @@ -1,4 +1,9 @@ +Tue Sep 05 22:10:34 1995 Chris Provenzano (proven@mit.edu) + + * kdb5_stash.c : Remove krb5_enctype references, and replace with + krb5_keytype where appropriate. + Mon Aug 21 16:48:01 EDT 1995 Paul Park (pjpark@mit.edu) * kdb5_stash.M - Remove "ascii representation of a decimal number". diff --git a/src/admin/stash/kdb5_stash.c b/src/admin/stash/kdb5_stash.c index 38712baa6..91beaba6e 100644 --- a/src/admin/stash/kdb5_stash.c +++ b/src/admin/stash/kdb5_stash.c @@ -42,7 +42,7 @@ char *who; int status; { fprintf(stderr, "usage: %s [-d dbpathname] [-r realmname] [-k keytype]\n\ -\t[-e etype] [-M mkeyname] [-f keyfile]\n", +\t[-M mkeyname] [-f keyfile]\n", who); exit(status); } @@ -65,7 +65,6 @@ char *argv[]; krb5_realm_params *rparams; int keytypedone = 0; - krb5_enctype etype = 0xffff; if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; @@ -90,11 +89,6 @@ char *argv[]; case 'M': /* master key name in DB */ mkey_name = optarg; break; - case 'e': - if (krb5_string_to_enctype(optarg, &etype)) - com_err(argv[0], 0, "%s is an invalid encryption type", - optarg); - break; case 'f': keyfile = optarg; break; @@ -132,10 +126,6 @@ char *argv[]; if (rparams->realm_stash_file && !keyfile) keyfile = strdup(rparams->realm_stash_file); - /* Get the value for the encryption type */ - if (rparams->realm_enctype_valid && (etype == 0xffff)) - etype = rparams->realm_enctype; - krb5_free_realm_params(context, rparams); } @@ -155,21 +145,7 @@ char *argv[]; exit(1); } - if (etype == 0xffff) - etype = DEFAULT_KDC_ETYPE; - - if (!valid_etype(etype)) { - char tmp[32]; - - if (krb5_enctype_to_string(etype, tmp, sizeof(tmp))) - com_err(argv[0], KRB5_PROG_ETYPE_NOSUPP, - "while setting up etype %d", etype); - else - com_err(argv[0], KRB5_PROG_ETYPE_NOSUPP, tmp); - exit(1); - } - - krb5_use_cstype(context, &master_encblock, etype); + krb5_use_keytype(context, &master_encblock, master_keyblock.keytype); if (retval = krb5_db_set_name(context, dbname)) { com_err(argv[0], retval, "while setting active database to '%s'",