don't get a krb5_context for the routines that don't need it
authorKen Raeburn <raeburn@mit.edu>
Wed, 3 Mar 2004 08:13:20 +0000 (08:13 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 3 Mar 2004 08:13:20 +0000 (08:13 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16142 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/disp_status.c
src/lib/gssapi/krb5/inq_cred.c
src/lib/gssapi/krb5/inq_names.c

index 46c83bfd0e9e54d524c0866dbecd821156acdc69..d5fbd75fa697c8f0d7ddff0577b25cd3c4297cfb 100644 (file)
@@ -1,3 +1,10 @@
+2004-03-03  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <hartmans@avalanche-breakdown.mit.edu>
 
        * accept_sec_context.c (krb5_gss_accept_sec_context): Don't clear
index 0b296f6ce6be3c0dfaf0cfc590f1203cf3f69e5d..c49ce12948c95f8ddb44be89c54dc3a056268509 100644 (file)
@@ -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)) {
index 83782162bedf91fdeb7f9b7b86ee912bf678a4a8..14ec0daa10c8eed48fd9d6b7ee6d11797abccf52 100644 (file)
@@ -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.
      */
index dc624720403b201cde12c8999308411e811984cf..430132d742b99acd459cec58b4b9eaca5891a0a2 100644 (file)
@@ -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.
      */