From: Ken Raeburn Date: Mon, 6 Dec 1999 21:52:07 +0000 (+0000) Subject: * init_ctx.c (get_profile_etype_list): Report an error if no X-Git-Tag: krb5-1.2-beta1~167 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4fe08e183e297201c444b1d68f0e9299b12535d;p=krb5.git * init_ctx.c (get_profile_etype_list): Report an error if no recognized enctypes are found in the config file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11949 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index c02f6e7b5..2ce212922 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +1999-12-02 Ken Raeburn + + * init_ctx.c (get_profile_etype_list): Report an error if no + recognized enctypes are found in the config file. + 1999-11-23 Ken Raeburn * init_ctx.c (init_common): Renamed from krb5_init_context, now diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index a6006a591..6fa773f73 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -364,6 +364,12 @@ get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list, desonly) profile_release_string(retval); } + if (old_ktypes[0] == 0) { + free (old_ktypes); + *ktypes = 0; + return KRB5_CONFIG_ETYPE_NOSUPP; + } + *ktypes = old_ktypes; return 0; }