Skip to content

Commit

Permalink
gss: remove gss_release_cred_by_mech()
Browse files Browse the repository at this point in the history
gss_release_cred_by_mech() was previously used by SPNEGO's implementation of
gss_set_neg_mechs(). This is now implemented in the mechanism glue. As we never
shipped gss_release_cred_by_mech(), it is safe to remove it and its exported
symbol.
  • Loading branch information
lhoward authored and nicowilliams committed Apr 21, 2020
1 parent a54761d commit 3bfe62d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions lib/gssapi/gssapi/gssapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1228,12 +1228,6 @@ gss_get_neg_mechs(
gss_const_cred_id_t /* cred_handle */,
gss_OID_set * /* mech_list */);

GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL
gss_release_cred_by_mech(
OM_uint32 * /* minor_status */,
gss_cred_id_t /* cred_handle */,
gss_const_OID /* mech */);

GSSAPI_LIB_FUNCTION void GSSAPI_LIB_CALL
gss_set_log_function(void *ctx, void (*func)(void * ctx, int level, const char *fmt, va_list));

Expand Down
1 change: 0 additions & 1 deletion lib/gssapi/libgssapi-exports.def
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ EXPORTS
gss_release_buffer
gss_release_buffer_set
gss_release_cred
gss_release_cred_by_mech
gss_release_iov_buffer
gss_release_name
gss_release_oid
Expand Down
21 changes: 0 additions & 21 deletions lib/gssapi/mech/cred.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,3 @@ _gss_mg_alloc_cred(void)
return cred;
}

GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL
gss_release_cred_by_mech(OM_uint32 *minor_status,
gss_cred_id_t cred_handle,
gss_const_OID mech_oid)
{
struct _gss_cred *cred = (struct _gss_cred *)cred_handle;
struct _gss_mechanism_cred *mc, *next;
OM_uint32 major_status = GSS_S_NO_CRED;

*minor_status = 0;

HEIM_TAILQ_FOREACH_SAFE(mc, &cred->gc_mc, gmc_link, next) {
if (gss_oid_equal(mech_oid, mc->gmc_mech_oid)) {
HEIM_TAILQ_REMOVE(&cred->gc_mc, mc, gmc_link);
major_status = release_mech_cred(minor_status, mc);
break;
}
}

return major_status;
}
1 change: 0 additions & 1 deletion lib/gssapi/version-script.map
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ HEIMDAL_GSS_2.0 {
gss_release_buffer;
gss_release_buffer_set;
gss_release_cred;
gss_release_cred_by_mech;
gss_release_iov_buffer;
gss_release_name;
gss_release_oid;
Expand Down

0 comments on commit 3bfe62d

Please sign in to comment.