+Mon Aug 21 16:44:07 EDT 1995 Paul Park (pjpark@mit.edu)
+ * kdb5_convert.c - Interpret -k and -e arguments as strings instead of
+ string representations of integers (e.g. -e des-cbc-md5).
+ * kdb5_convert.M - Remove "ascii representation of a decimal number".
+
+
Thu Jul 27 14:59:53 EDT 1995 Paul Park (pjpark@mit.edu)
* configure.in - Add --with-dbm and check for already checking for dbm.
The
.B \-k
.I keytype
-option specifies the key type (as an ascii representation of a decimal
-number) of the master key in the database; the default is KEYTYPE_DES.
+option specifies the key type of the master key in the database; the default
+is KEYTYPE_DES.
.PP
The
.B \-M
The
.B \-e
.I enctype
-option specifies the encryption type (as an ascii representation of a decimal
-number) to be used when placing entries in
+option specifies the encryption type to be used when placing entries in
the database; the default is the default encryption type for the master
keytype.
.PP
verbose = 1;
break;
case 'k':
- master_keyblock.keytype = atoi(optarg);
- keytypedone++;
+ if (!krb5_string_to_keytype(optarg, &master_keyblock.keytype))
+ keytypedone++;
+ else
+ com_err(argv[0], 0, "%s is an invalid keytype", optarg);
break;
case 'M': /* master key name in DB */
mkey_name = optarg;
break;
case 'e':
- etype = atoi(optarg);
+ if (krb5_string_to_enctype(optarg, &etype))
+ com_err(argv[0], 0, "%s is an invalid encryption type",
+ optarg);
break;
case 'n':
v4manual++;