krb5_build_principal_va does not allocate krb5_principal
authorAlexandra Ellwood <lxs@mit.edu>
Fri, 24 Oct 2008 19:46:41 +0000 (19:46 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Fri, 24 Oct 2008 19:46:41 +0000 (19:46 +0000)
commit4d901a092a69a69be251131174166fc661d13633
treedc1227f213605bc27561acdf4005b74df65f7b0b
parent9d3a0fa806297b18967f2108c637e65c6904987c
krb5_build_principal_va does not allocate krb5_principal

krb5_build_principal_va does not allocate the outer krb5_principal,
making it useless for generating krb5_principals which can be freed
with krb5_free_principal.  Added krb5_build_principal_alloc_va which
allocates the krb5_principal.

Added krb5int_build_principal_alloc_va which is used by KIM to avoid
code duplication. KIM's kim_identity_create_from_components takes
the first component as an argument because principals with no
components cannot be represented with the KIM UI.  Modified KIM
to use this new API.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20918 dc483132-0cff-0310-8789-dd5450dbe970
src/include/k5-int.h
src/include/krb5/krb5.hin
src/kim/lib/kim_identity.c
src/lib/krb5/krb/bld_princ.c
src/lib/krb5/libkrb5.exports