]> git.ipfire.org Git - thirdparty/krb5.git/commit
Allow null outputs to gss_get_name_attribute() 613/head
authorIsaac Boukris <iboukris@gmail.com>
Sat, 4 Mar 2017 19:23:32 +0000 (21:23 +0200)
committerGreg Hudson <ghudson@mit.edu>
Tue, 7 Mar 2017 17:37:37 +0000 (12:37 -0500)
commit0cff20bd02c7e9b0bc88c425b58fa2d379da51b3
treed703a62cad97b70e623d3b236af5b6bec1964043
parentbc7594058011c2f9711f24af4fa15a421a8d5b62
Allow null outputs to gss_get_name_attribute()

In krb5_gss_get_name_attribute(), always ask for kvalue and
kdisplay_value when calling krb5_authdata_get_attribute(), as it
currently expect non-null arguments.  This change allows applications
to pass GSS_C_NO_BUFFER for the value and display_value output
parameters.  (Passing NULL for the authenticated and complete output
parameters already works.)

[ghudson@mit.edu: initialized kvalue and kdisplay_value for safety]

ticket: 8557 (new)
target_version: 1.15-next
target_version: 1.14-next
tags: pullup
src/lib/gssapi/krb5/naming_exts.c