Negative enctypes improperly read from keytabs
authorGreg Hudson <ghudson@mit.edu>
Thu, 13 May 2010 17:34:33 +0000 (17:34 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 13 May 2010 17:34:33 +0000 (17:34 +0000)
commitaa53b05e76d809172e15c626750d1800a92246dc
tree698c6bd76e61e7c78f4182fb53f8e68f24bbb308
parent592c43b440bccf0530f7935f926a7f74e12ff7c8
Negative enctypes improperly read from keytabs

When reading enctypes from keytabs, we need to ntohs() the 16-bit
value we read in before sign-extending it to a 32-bit value in the
keyblock, or we run the risk of extending the wrong sign.

ticket: 6720

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24016 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/keytab/kt_file.c