Make decryption of master key list more robust
authorGreg Hudson <ghudson@mit.edu>
Fri, 29 Jan 2010 01:22:17 +0000 (01:22 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 29 Jan 2010 01:22:17 +0000 (01:22 +0000)
commit8b8ccf17352b15c70274fdada0294665a1748195
tree0638f8b1243e76cfa38b51f0d5fbaaccb5b70085
parentf0e084261aec6be2d508b33f960d38d19f0d0345
Make decryption of master key list more robust

krb5_def_fetch_mkey_list was incorrectly filtering mkey_aux entries
when searching the list for an entry which can be decrypted with the
stashed master key.  This bug was masked in most cases by the mkvno
heuristic.

Remove the mkvno heuristic, since performance is not an issue for this
rarely-performed operation, and remove the incorrect enctype
comparison in the brute-force search.

ticket: 6652
target_version: 1.8
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23677 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kdb/kdb_default.c