Print this page
6817447 libgss and various mechs are hiding both the real minor_status and the error token
6405422 Solaris acceptors fail in AD-KDC environments when using non-"host" services (e.g. "cifs")
6824434 Unable to accept context establishment initiated by Windows 2000 clients
6787343 kclient's site lookups fail in certain network environments
6692646 kclient should output errors to stderr
6525327 kinit failed when arcfour-hmac-md5-exp was used for the principal's key
6745582 SUNWkdcu missing package dependencies after kclientv2 integration

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c
          +++ new/usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11   * and limitations under the License.
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
       21 +
  21   22  /*
  22      - * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
       23 + * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   24   * Use is subject to license terms.
  24   25   *
  25   26   * A module that implements the spnego security mechanism.
  26   27   * It is used to negotiate the security mechanism between
  27   28   * peers using the GSS-API.
  28   29   *
  29   30   */
  30   31  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  32      -
  33   32  #include        <stdio.h>
  34   33  #include        <stdlib.h>
  35   34  #include        <errno.h>
  36   35  #include        "gssapiP_spnego.h"
  37   36  #include        <mechglueP.h>
  38   37  #include        <gssapi_err_generic.h>
  39   38  #include        <rpc/types.h>
  40   39  #include        <libintl.h>
  41   40  
  42   41  /* der routines defined in libgss */
↓ open down ↓ 1029 lines elided ↑ open up ↑
1072 1071                          spnego_ctx->ctx_handle = NULL;
1073 1072  
1074 1073                          release_spnego_ctx(&spnego_ctx);
1075 1074                  }
1076 1075                  *context_handle = GSS_C_NO_CONTEXT;
1077 1076          }
1078 1077          if (mech_wanted != NULL) {
1079 1078                  generic_gss_release_oid(&mstat, &mech_wanted);
1080 1079          }
1081 1080  
1082      -        (void) gss_release_cred(minor_status, &acquired_cred);
1083      -        (void) gss_release_oid_set(minor_status, &supported_mechSet);
     1081 +        (void) gss_release_cred(&mstat, &acquired_cred);
     1082 +        (void) gss_release_oid_set(&mstat, &supported_mechSet);
1084 1083  
1085 1084          (void) gss_release_buffer(&mstat, i_output_token);
1086 1085          free(i_output_token);
1087 1086  
1088 1087          return (ret);
1089 1088  }
1090 1089  
1091 1090  /*ARGSUSED*/
1092 1091  OM_uint32
1093 1092  spnego_gss_display_status(void *ctx,
↓ open down ↓ 1637 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX