MEMORY keytab krb5_kt_get_entry sets enctype to 0 if unspecified
authorEzra Peisach <epeisach@mit.edu>
Sun, 4 Feb 2007 02:49:54 +0000 (02:49 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 4 Feb 2007 02:49:54 +0000 (02:49 +0000)
commit406d6f34a9dd249508aacf2c860556687c8c971c
tree33e7b4da839398b32ba2404fc6df286947371f2e
parentcbf68e7ae3bbae299793240ee3b65a45bb09f7c6
MEMORY keytab krb5_kt_get_entry sets enctype to 0 if unspecified

If one invokes krb5_kt_get_entry() for a memory keytab w/ an unspecified
enctype (i.e. 0) - the returned keytab has it's enctype set to 0 as well.

Also - in copying out the found keytab_entry - when a kvno is unspecified,
the last match found is used  - not the one with the highest vno.
This was caused by copying out the variable "entry" and not "match".

Ticket: new

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