]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add krb5_expand_hostname() API
authorGreg Hudson <ghudson@mit.edu>
Tue, 17 Nov 2015 18:06:31 +0000 (13:06 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 24 Aug 2016 16:24:35 +0000 (12:24 -0400)
commitfaf9ad33e9e6b7ffaac02fcd249e60e2224f5ec7
tree83991541f1e62981078f4034d8193955552b0e6e
parent058a688335019709a9135f5c6377bb41f7eac5c9
Add krb5_expand_hostname() API

Add a new public libkrb5 function expand_hostname().  It follows the
same contract as the Heimdal function, except that the caller should
use krb5_free_string() instead of krb5_xfree() to free the result.

As a small side effect, we no longer remove trailing dots from the
hostname in krb5_sname_to_principal() when invoked with type
KRB5_NT_UNKNOWN.  Adjust a test case in t_sn2princ.py accordingly.

ticket: 8278 (new)
doc/appdev/refs/api/index.rst
src/include/krb5/krb5.hin
src/lib/krb5/libkrb5.exports
src/lib/krb5/os/sn2princ.c
src/lib/krb5_32.def
src/tests/t_sn2princ.py