]> git.ipfire.org Git - thirdparty/krb5.git/commit
Consolidate sn2princ_realm() in kprop and kpropd 525/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 25 Aug 2016 19:37:23 +0000 (15:37 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 6 Sep 2016 20:33:49 +0000 (16:33 -0400)
commita2ff1d95a8c3c455fc70d7ef6644fa4dabf96549
treed561d3eaf95f981329acabf583c207b61391c593
parenta0b43869cfeff5ded73460c8cc89472ac995a6d7
Consolidate sn2princ_realm() in kprop and kpropd

In kprop and kpropd, factor out the duplicated implementation of
sn2princ_with_realm() into kprop_util.c.  Rename it to
sn2princ_realm(), remove the type parameter, and require the sname
parameter to be specified.  Rewrite the function to use
krb5_expand_hostname(), avoiding an unnecessary hostrealm lookup.
src/slave/kprop.c
src/slave/kprop.h
src/slave/kprop_util.c
src/slave/kpropd.c