]> git.ipfire.org Git - thirdparty/krb5.git/commit
Import names immediately with COMPOSITE_EXPORT
authorSolly Ross <sross@redhat.com>
Thu, 5 Mar 2015 18:22:58 +0000 (13:22 -0500)
committerTom Yu <tlyu@mit.edu>
Wed, 18 Mar 2015 20:17:32 +0000 (16:17 -0400)
commitf2302383dd3a32bf22f437c4e1d10533323db5dc
tree1fbfa4f5ceef7f1079c3efca2473bdefd6d2dd35
parent37c02e7fc50a9633b639cbf3daeaeaf1c9c75724
Import names immediately with COMPOSITE_EXPORT

RFC 6680 specifies that GSS_Export_name_composite() "outputs a token that
"can be imported with GSS_Import_name(), using GSS_C_NT_COMPOSITE_EXPORT
as the name type...".  Therefore, in the gss_import_name mechglue, we
should perform the import process imediately when either
GSS_C_NT_COMPOSITE_EXPORT or GSS_C_NT_EXPORT_NAME are used (not just
for the later, as is the current functionality).

The naming extension test was also updated to display the result
of importing with GSS_C_NT_COMPOSITE_EXPORT in addition to
GSS_C_NT_EXPORT_NAME.

[ghudson@mit.edu: minor style changes]

(cherry picked from commit 29dec110c43ae9cebdcd935906a3131ca9ac0c99)

ticket: 8153
version_fixed: 1.13.2
status: resolved
src/lib/gssapi/mechglue/g_imp_name.c
src/tests/gssapi/t_export_name.c
src/tests/gssapi/t_gssapi.py
src/tests/gssapi/t_namingexts.c