kadmin: add_enctype check for bogus keys
commit7ab1e01d75eb5776cbc384d677dc3530024d108e
authorNicolas Williams <nico@cryptonector.com>
Fri, 13 Mar 2015 01:42:48 +0000 (12 21:42 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 14 Mar 2015 20:08:38 +0000 (14 16:08 -0400)
tree65400e74ff2aa4525ca13a88480bfa48335ee91d
parentedb6c1b07527e3412de8b9297cf166dba5299ba7
kadmin: add_enctype check for bogus keys

If kadmind returned bogus keys it means that the user lacks the
get-keys permission.   Generate a warning and exit.

Also use calloc() to allocate the new_key_data.

Change-Id: I21b697e2ff5adf753b1cfe698877b3f593bbea9e
kadmin/add_enctype.c