From 7e378c397fd3876f9303af2511283a80002a468a Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 24 Apr 1990 16:41:06 +0000 Subject: [PATCH] change to use krb5_db_setup_mkey_name improve cryptosystem support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@573 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/main.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/kdc/main.c b/src/kdc/main.c index 5d4ce6393..ba33f13cc 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -37,6 +37,11 @@ static char rcsid_main_c[] = #include #include +#include +#ifdef PROVIDE_DES_CBC_CRC +#include +#endif + #include "kdc_util.h" #include "extern.h" #include "../admin/common.h" @@ -169,7 +174,7 @@ char **argv; /* assemble & parse the master key name */ - if (retval = setup_mkey_name(mkey_name, db_realm, 0, &master_princ)) { + if (retval = krb5_db_setup_mkey_name(mkey_name, db_realm, &master_princ)) { com_err(argv[0], retval, "while setting up master key name"); exit(1); } @@ -198,8 +203,12 @@ krb5_keyblock *masterkeyblock; if (retval = krb5_db_init()) return(retval); - master_encblock.crypto_entry = &krb5_des_cs_entry; /* XXX */ - +#ifdef PROVIDE_DES_CBC_CRC + master_encblock.crypto_entry = &mit_des_cryptosystem_entry; +#else +#error You gotta figure out what cryptosystem to use in the KDC. +#endif + if (retval = krb5_db_verify_master_key(masterkeyname, masterkeyblock, &master_encblock)) { master_encblock.crypto_entry = 0; -- 2.26.2