[krbdev.mit.edu #8278] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Wed Aug 24 12:44:56 EDT 2016


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.

https://github.com/krb5/krb5/commit/faf9ad33e9e6b7ffaac02fcd249e60e2224f5ec7
Author: Greg Hudson <ghudson at mit.edu>
Commit: faf9ad33e9e6b7ffaac02fcd249e60e2224f5ec7
Branch: master
 doc/appdev/refs/api/index.rst |    1 +
 src/include/krb5/krb5.hin     |   17 +++++++++++++++++
 src/lib/krb5/libkrb5.exports  |    1 +
 src/lib/krb5/os/sn2princ.c    |   30 ++++++++++++++----------------
 src/lib/krb5_32.def           |    1 +
 src/tests/t_sn2princ.py       |    9 ++++-----
 6 files changed, 38 insertions(+), 21 deletions(-)



More information about the krb5-bugs mailing list