From: Ken Raeburn Date: Wed, 3 Mar 2004 08:13:20 +0000 (+0000) Subject: don't get a krb5_context for the routines that don't need it X-Git-Tag: krb5-1.4-beta1~570 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e18ae094ea4ed85f62b66df5b0396ab8dcf04db0;p=krb5.git don't get a krb5_context for the routines that don't need it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16142 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 46c83bfd0..d5fbd75fa 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,10 @@ +2004-03-03 Ken Raeburn + + * disp_status.c (krb5_gss_display_status): Don't call + kg_get_context; delete local krb5_context variable. + * inq_cred.c (krb5_gss_inquire_cred_by_mech): Likewise. + * inq_names.c (krb5_gss_inquire_names_for_mech): Likewise. + 2004-02-26 Sam Hartman * accept_sec_context.c (krb5_gss_accept_sec_context): Don't clear diff --git a/src/lib/gssapi/krb5/disp_status.c b/src/lib/gssapi/krb5/disp_status.c index 0b296f6ce..c49ce1294 100644 --- a/src/lib/gssapi/krb5/disp_status.c +++ b/src/lib/gssapi/krb5/disp_status.c @@ -41,13 +41,9 @@ krb5_gss_display_status(minor_status, status_value, status_type, OM_uint32 *message_context; gss_buffer_t status_string; { - krb5_context context; status_string->length = 0; status_string->value = NULL; - if (GSS_ERROR(kg_get_context(minor_status, &context))) - return(GSS_S_FAILURE); - if ((mech_type != GSS_C_NULL_OID) && !g_OID_equal(gss_mech_krb5, mech_type) && !g_OID_equal(gss_mech_krb5_old, mech_type)) { diff --git a/src/lib/gssapi/krb5/inq_cred.c b/src/lib/gssapi/krb5/inq_cred.c index 83782162b..14ec0daa1 100644 --- a/src/lib/gssapi/krb5/inq_cred.c +++ b/src/lib/gssapi/krb5/inq_cred.c @@ -202,14 +202,10 @@ krb5_gss_inquire_cred_by_mech(minor_status, cred_handle, OM_uint32 *acceptor_lifetime; gss_cred_usage_t *cred_usage; { - krb5_context context; krb5_gss_cred_id_t cred; OM_uint32 lifetime; OM_uint32 mstat; - if (GSS_ERROR(kg_get_context(minor_status, &context))) - return(GSS_S_FAILURE); - /* * We only know how to handle our own creds. */ diff --git a/src/lib/gssapi/krb5/inq_names.c b/src/lib/gssapi/krb5/inq_names.c index dc6247204..430132d74 100644 --- a/src/lib/gssapi/krb5/inq_names.c +++ b/src/lib/gssapi/krb5/inq_names.c @@ -36,12 +36,8 @@ krb5_gss_inquire_names_for_mech(minor_status, mechanism, name_types) gss_OID mechanism; gss_OID_set *name_types; { - krb5_context context; OM_uint32 major, minor; - if (GSS_ERROR(kg_get_context(minor_status, &context))) - return(GSS_S_FAILURE); - /* * We only know how to handle our own mechanism. */