]> git.ipfire.org Git - thirdparty/krb5.git/commit
Infer name type when creating principals 1158/head
authorFraser Tweedale <ftweedal@redhat.com>
Fri, 5 Feb 2021 00:00:24 +0000 (11:00 +1100)
committerGreg Hudson <ghudson@mit.edu>
Thu, 11 Feb 2021 18:57:25 +0000 (13:57 -0500)
commit457ce648b654990cb101f66255b4a87b7339efc1
treeb90ad8a2e41cae3e0d4280aec28ddd5640db80ff
parent13ae08e70a05768d4f65978ce1a8d4e16fec0d35
Infer name type when creating principals

In the krb5_parse_name() and krb5_build_principal() families, infer
the name type if the principal is a TGS name or has first component
WELLKNOWN.

Revert commit 0d5df56ea6d4a05c31b7e513ee9ec1542a4b5dce and part of
commit 5994d8928b8ff88751b14bc60c7d7bfce8b30e57 since that
responsibility now lies with krb5_build_principal_ext().

[ghudson@mit.edu: made editorial changes; added removal of
no-longer-needed code; added documentation; rewrote commit message]

ticket: 8983 (new)
12 files changed:
src/include/krb5/krb5.hin
src/lib/krb5/krb/Makefile.in
src/lib/krb5/krb/bld_pr_ext.c
src/lib/krb5/krb/bld_princ.c
src/lib/krb5/krb/deps
src/lib/krb5/krb/get_in_tkt.c
src/lib/krb5/krb/int-proto.h
src/lib/krb5/krb/parse.c
src/lib/krb5/krb/t_kerb.c
src/lib/krb5/krb/t_ref_kerb.out
src/lib/krb5/krb/tgtname.c
src/plugins/preauth/pkinit/pkinit_kdf_test.c