gssapi: gss_krb5_set_allowable_enctypes prototype mismatch

gss_krb5_set_allowable_enctypes() was declared with an array of int32_t types
representing the enctype list, but the definition had an array of krb5_enctype.
Whilst these are likely the same size, they may not be. On the receiving end,
allocate an array of krb5_enctype.
This commit is contained in:
Luke Howard
2019-01-03 16:51:18 +11:00
parent 728650f3dd
commit 2242b5bc5b
2 changed files with 6 additions and 5 deletions

View File

@@ -433,7 +433,7 @@ GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL
gss_krb5_set_allowable_enctypes(OM_uint32 *minor_status,
gss_cred_id_t cred,
OM_uint32 num_enctypes,
krb5_enctype *enctypes)
int32_t *enctypes)
{
krb5_error_code ret;
OM_uint32 maj_status;