From: John Kohl Date: Tue, 24 Apr 1990 16:41:06 +0000 (+0000) Subject: change to use krb5_db_setup_mkey_name X-Git-Tag: krb5-1.0-alpha2~822 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e378c397fd3876f9303af2511283a80002a468a;p=krb5.git 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 --- 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;