Legacy checksum APIs usually fail
authorGreg Hudson <ghudson@mit.edu>
Tue, 26 Jul 2011 21:57:20 +0000 (21:57 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 26 Jul 2011 21:57:20 +0000 (21:57 +0000)
commit9e1e72a26c692717c87e55675cfaa69f3979e5c6
tree2522434cb65186fa070132ed0de193f8859b80d2
parent9f206a2c4664f7936e0648c944d462ce31fe2a5e
Legacy checksum APIs usually fail

krb5_calculate_checksum() and krb5_verify_checksum(), both deprecated,
construct invalid keyblocks and pass them to the real functions, which
used to work but now doesn't.  Try harder to construct valid keyblocks
or pass NULL if there's no key.

ticket: 6939
target_version: 1.9.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25059 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/crypto/krb/old_api_glue.c