gssapi: import bugfixes from Apple Heimdal-520
commitad426d038576d05a6d1f4420978862802f79dbfd
authorLuke Howard <lukeh@padl.com>
Wed, 2 Jan 2019 22:06:46 +0000 (3 09:06 +1100)
committerLuke Howard <lukeh@padl.com>
Thu, 3 Jan 2019 06:53:25 +0000 (3 17:53 +1100)
tree6057d2b1b56306fb1cb08e282585126ebf2fc9f9
parent29fe69f95f53a067bae76c265945e5a3afcdd3ef
gssapi: import bugfixes from Apple Heimdal-520

* check `ctx->gc_ctx` in `gss_inquire_context()`
* check `gm_inquire_cred != NULL` in `gss_inquire_context()`
* check `min_lifetime` in `gss_inquire_cred()`
* check `gm_inquire_cred_by_mech != NULL` in `gss_inquire_cred_by_mech()`
* set mech error in `gss_inquire_cred_by_oid()`
* don't clobber error in `gss_inquire_cred_by_oid()`
* don't pass NULL minor_status to `gss_krb5_free_lucid_sec_context()`
* allow NULL ccache in `gss_krb5_ccache_name()`
* NULL names OK in `_gss_find_mn()`
* allow empty names in `gss_import_name()` (removes `input_name_buffer` length
  check). to support ANONYMOUS.  in `gss_import_name()`, ignore mech name
  import failure as long as it's possible to import the name in some other
  mechanism
* better argument validation in `gss_export_sec_context()`
* in `gss_compare_name()`, check `mn2 != NULL`
* check `gss_add_oid_set_member()` return code in `gss_indicate_mechs()`
* in `gss_destroy_cred()`, set output cred handle to `GSS_C_NO_CREDENTIAL`
* cast size_t to OM_uint32 where required
13 files changed:
lib/gssapi/mech/gss_compare_name.c
lib/gssapi/mech/gss_cred.c
lib/gssapi/mech/gss_destroy_cred.c
lib/gssapi/mech/gss_export_sec_context.c
lib/gssapi/mech/gss_import_name.c
lib/gssapi/mech/gss_indicate_mechs.c
lib/gssapi/mech/gss_inquire_context.c
lib/gssapi/mech/gss_inquire_cred.c
lib/gssapi/mech/gss_inquire_cred_by_mech.c
lib/gssapi/mech/gss_inquire_cred_by_oid.c
lib/gssapi/mech/gss_krb5.c
lib/gssapi/mech/gss_unwrap.c
lib/gssapi/mech/gss_utils.c