Rewrite gss_add_cred() (fix #413)
It turns out gss_add_cred() really needed a complete rewrite. It's much better to first have a gss_duplicate_cred() (which has been needed for other reasons anyways), and use that when the input_cred_handle is not GSS_C_NO_CREDENTIAL and output_cred_handle is not NULL, then mutate that duplicate credential handle (or the input_cred_handle if output_cred_handle is NULL).
This commit is contained in:

committed by
Nico Williams

parent
134b53ead1
commit
e6d1c10808
@@ -37,6 +37,7 @@ krb5src = \
|
||||
krb5/delete_sec_context.c \
|
||||
krb5/display_name.c \
|
||||
krb5/display_status.c \
|
||||
krb5/duplicate_cred.c \
|
||||
krb5/duplicate_name.c \
|
||||
krb5/encapsulate.c \
|
||||
krb5/export_name.c \
|
||||
@@ -99,6 +100,7 @@ mechsrc = \
|
||||
mech/gss_display_name.c \
|
||||
mech/gss_display_name_ext.c \
|
||||
mech/gss_display_status.c \
|
||||
mech/gss_duplicate_cred.c \
|
||||
mech/gss_duplicate_name.c \
|
||||
mech/gss_duplicate_oid.c \
|
||||
mech/gss_encapsulate_token.c \
|
||||
|
Reference in New Issue
Block a user