* init_ctx.c (get_profile_etype_list): Report an error if no
authorKen Raeburn <raeburn@mit.edu>
Mon, 6 Dec 1999 21:52:07 +0000 (21:52 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 6 Dec 1999 21:52:07 +0000 (21:52 +0000)
recognized enctypes are found in the config file.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11949 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/init_ctx.c

index c02f6e7b557e308f8517e4b2eaca9d6e23a846bc..2ce212922709660da7e42b984a8b06fd9fddf126 100644 (file)
@@ -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
index a6006a5915e46150396f34c538d031d43338c606..6fa773f738eb5ccdf52946c515e6254e7c3f145a 100644 (file)
@@ -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;
 }