+Mon Jan 4 23:50:45 1999 Tom Yu <tlyu@mit.edu>
+
+ * configure.in (withval): Conditinalize ATHENA_DES3_KLUDGE on
+ --enable-athena.
+
+ * main.c (initialize_realms): Kludge to disable
+ des3-marc-hmac-sha1 from the command line.
+
1998-11-13 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Set the myfulldir and mydir variables (which are
AC_MSG_RESULT(Updating KDC database with each request)
AC_DEFINE(KRBCONF_KDC_MODIFIES_KDB)
fi
+dnl XXX This will go away soon. -- tlyu
+AC_ARG_ENABLE([athena],
+[ --enable-athena build with MIT Project Athena configuration
+ -- here meaning use temporary DES3 etype that
+ includes 32-bit length codings],
+[AC_DEFINE(ATHENA_DES3_KLUDGE)],)
dnl
dnl
KRB5_RUN_FLAGS
char *v4mode = 0;
#endif
extern char *optarg;
+#ifdef ATHENA_DES3_KLUDGE
+ extern struct krb5_keytypes krb5_enctypes_list[];
+ extern int krb5_enctypes_length;
+#endif
if (!krb5_aprof_init(DEFAULT_KDC_PROFILE, KDC_PROFILE_ENV, &aprof)) {
hierarchy[0] = "kdcdefaults";
* Loop through the option list. Each time we encounter a realm name,
* use the previously scanned options to fill in for defaults.
*/
- while ((c = getopt(argc, argv, "r:d:mM:k:R:e:p:s:n4:")) != -1) {
+ while ((c = getopt(argc, argv, "r:d:mM:k:R:e:p:s:n4:3")) != -1) {
switch(c) {
case 'r': /* realm name for db */
if (!find_realm_data(optarg, (krb5_ui_4) strlen(optarg))) {
v4mode = strdup(optarg);
#endif
break;
+ case '3':
+#ifdef ATHENA_DES3_KLUDGE
+ if (krb5_enctypes_list[krb5_enctypes_length-1].etype
+ != ENCTYPE_LOCAL_DES3_HMAC_SHA1) {
+ fprintf(stderr,
+ "internal inconsistency in enctypes_list"
+ " while disabling\n"
+ "des3-marc-hmac-sha1 enctype\n");
+ exit(1);
+ }
+ krb5_enctypes_length--;
+ break;
+#endif
case '?':
default:
usage(argv[0]);