diff options
author | Ken Raeburn <raeburn@mit.edu> | 1999-12-06 21:52:07 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 1999-12-06 21:52:07 +0000 |
commit | f4fe08e183e297201c444b1d68f0e9299b12535d (patch) | |
tree | 3c9167f547195057fdc4407e744b049d13541729 /src/lib/krb5 | |
parent | 4ae5aea3e465fe90e5d6aba4d77f38aee3f8df73 (diff) | |
download | krb5-f4fe08e183e297201c444b1d68f0e9299b12535d.tar.gz krb5-f4fe08e183e297201c444b1d68f0e9299b12535d.tar.xz krb5-f4fe08e183e297201c444b1d68f0e9299b12535d.zip |
* 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
Diffstat (limited to 'src/lib/krb5')
-rw-r--r-- | src/lib/krb5/krb/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/krb5/krb/init_ctx.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index c02f6e7b55..2ce2129227 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +1999-12-02 Ken Raeburn <raeburn@mit.edu> + + * 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 <raeburn@mit.edu> * 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 a6006a5915..6fa773f738 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; } |