Print this page
3882 remove xmod & friends

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/gssapi/include/mechglueP.h
          +++ new/usr/src/uts/common/gssapi/include/mechglueP.h
↓ open down ↓ 214 lines elided ↑ open up ↑
 215  215                      const gss_cred_id_t,        /* verifier_cred_handle */
 216  216                      const gss_buffer_t,         /* input_token_buffer */
 217  217                      const gss_channel_bindings_t, /* input_chan_bindings */
 218  218                      gss_name_t *,               /* src_name */
 219  219                      gss_OID*,                   /* mech_type */
 220  220                      gss_buffer_t,               /* output_token */
 221  221                      OM_uint32 *,                        /* ret_flags */
 222  222                      OM_uint32 *,                        /* time_rec */
 223  223                      gss_cred_id_t *             /* delegated_cred_handle */
 224  224          /* */);
 225      -/* EXPORT DELETE START */ /* CRYPT DELETE START */
 226  225  #endif  /* ! _KERNEL */
 227  226  
 228  227  /*
 229  228   * Note: there are two gss_unseal's in here. Make any changes to both.
 230  229   */
 231  230          OM_uint32           (*gss_unseal)
 232  231          (
 233  232                      void *,             /* context */
 234  233                      OM_uint32 *,        /* minor_status */
 235  234                      const gss_ctx_id_t, /* context_handle */
 236  235                      const gss_buffer_t, /* input_message_buffer */
 237  236                      gss_buffer_t,       /* output_message_buffer */
 238  237                      int *,              /* conf_state */
 239  238                      int *               /* qop_state */
 240  239  #ifdef   _KERNEL
 241  240          /* */, OM_uint32
 242  241  #endif
 243  242          /* */);
 244  243  #ifndef _KERNEL
 245      -/* EXPORT DELETE END */ /* CRYPT DELETE END */
 246  244          OM_uint32           (*gss_process_context_token)
 247  245          (
 248  246                      void *,             /* context */
 249  247                      OM_uint32 *,        /* minor_status */
 250  248                      const gss_ctx_id_t, /* context_handle */
 251  249                      const gss_buffer_t  /* token_buffer */
 252  250          /* */);
 253  251  #endif  /* ! _KERNEL */
 254  252          OM_uint32           (*gss_delete_sec_context)
 255  253          (
↓ open down ↓ 77 lines elided ↑ open up ↑
 333  331                      const gss_name_t,   /* desired_name */
 334  332                      const gss_OID,      /* desired_mech */
 335  333                      gss_cred_usage_t,   /* cred_usage */
 336  334                      OM_uint32,          /* initiator_time_req */
 337  335                      OM_uint32,          /* acceptor_time_req */
 338  336                      gss_cred_id_t *,    /* output_cred_handle */
 339  337                      gss_OID_set *,      /* actual_mechs */
 340  338                      OM_uint32 *,        /* initiator_time_rec */
 341  339                      OM_uint32 *         /* acceptor_time_rec */
 342  340          /* */);
 343      -/* EXPORT DELETE START */ /* CRYPT DELETE START */
 344  341  #endif  /* ! _KERNEL */
 345  342  /*
 346  343   * Note: there are two gss_seal's in here. Make any changes to both.
 347  344   */
 348  345          OM_uint32           (*gss_seal)
 349  346          (
 350  347                      void *,             /* context */
 351  348                      OM_uint32 *,        /* minor_status */
 352  349                      const gss_ctx_id_t, /* context_handle */
 353  350                      int,                /* conf_req_flag */
 354  351                      int,                /* qop_req */
 355  352                      const gss_buffer_t, /* input_message_buffer */
 356  353                      int *,              /* conf_state */
 357  354                      gss_buffer_t        /* output_message_buffer */
 358  355  #ifdef   _KERNEL
 359  356          /* */, OM_uint32
 360  357  #endif
 361  358          /* */);
 362  359  #ifndef _KERNEL
 363      -/* EXPORT DELETE END */ /* CRYPT DELETE END */
 364  360          OM_uint32           (*gss_export_sec_context)
 365  361          (
 366  362                      void *,             /* context */
 367  363                      OM_uint32 *,        /* minor_status */
 368  364                      gss_ctx_id_t *,     /* context_handle */
 369  365                      gss_buffer_t        /* interprocess_token */
 370  366          /* */);
 371  367  #endif  /* ! _KERNEL */
 372  368          OM_uint32           (*gss_import_sec_context)
 373  369          (
↓ open down ↓ 66 lines elided ↑ open up ↑
 440  436                      int *               /* user ok? */
 441  437          /* */);
 442  438          OM_uint32               (*gss_export_name)
 443  439          (
 444  440                  void *,                 /* context */
 445  441                  OM_uint32 *,            /* minor_status */
 446  442                  const gss_name_t,       /* input_name */
 447  443                  gss_buffer_t            /* exported_name */
 448  444          /* */);
 449  445  #endif  /* ! _KERNEL */
 450      -/* EXPORT DELETE START */
 451      -/* CRYPT DELETE START */
 452      -/*
 453      - * This block comment is Sun Proprietary: Need-To-Know.
 454      - * What we are doing is leaving the seal and unseal entry points
 455      - * in an obvious place before sign and unsign for the Domestic customer
 456      - * of the Solaris Source Product. The Domestic customer of the Solaris Source
 457      - * Product will have to deal with the problem of creating exportable libgss
 458      - * binaries.
 459      - * In the binary product that Sun builds, these entry points are elsewhere,
 460      - * and bracketed with special comments so that the CRYPT_SRC and EXPORT_SRC
 461      - * targets delete them.
 462      - */
 463      -#if 0
 464      -/* CRYPT DELETE END */
 465      -        OM_uint32           (*gss_seal)
 466      -        (
 467      -                    void *,             /* context */
 468      -                    OM_uint32 *,        /* minor_status */
 469      -                    const gss_ctx_id_t, /* context_handle */
 470      -                    int,                /* conf_req_flag */
 471      -                    int,                /* qop_req */
 472      -                    const gss_buffer_t, /* input_message_buffer */
 473      -                    int *,              /* conf_state */
 474      -                    gss_buffer_t        /* output_message_buffer */
 475      -#ifdef   _KERNEL
 476      -        /* */, OM_uint32
 477      -#endif
 478      -        /* */);
 479      -        OM_uint32           (*gss_unseal)
 480      -        (
 481      -                    void *,             /* context */
 482      -                    OM_uint32 *,        /* minor_status */
 483      -                    const gss_ctx_id_t, /* context_handle */
 484      -                    const gss_buffer_t, /* input_message_buffer */
 485      -                    gss_buffer_t,       /* output_message_buffer */
 486      -                    int *,              /* conf_state */
 487      -                    int *               /* qop_state */
 488      -#ifdef   _KERNEL
 489      -        /* */, OM_uint32
 490      -#endif
 491      -        /* */);
 492      -/* CRYPT DELETE START */
 493      -#endif /* 0 */
 494      -/* CRYPT DELETE END */
 495      -/* EXPORT DELETE END */
 496  446          OM_uint32       (*gss_sign)
 497  447          (
 498  448                      void *,             /* context */
 499  449                      OM_uint32 *,        /* minor_status */
 500  450                      const gss_ctx_id_t, /* context_handle */
 501  451                      int,                /* qop_req */
 502  452                      const gss_buffer_t, /* message_buffer */
 503  453                      gss_buffer_t        /* message_token */
 504  454  #ifdef   _KERNEL
 505  455          /* */, OM_uint32
↓ open down ↓ 288 lines elided ↑ open up ↑
 794  744                  KCTX_TO_CTX(ctx), msg, tkn, qop,  KCTX_TO_CTXV(ctx))
 795  745  
 796  746  #define KGSS_DELETE_SEC_CONTEXT(minor_st, ctx, int_ctx_id,  tkn)        \
 797  747          (*(KCTX_TO_MECH(ctx)->gss_delete_sec_context))(KCTX_TO_PRIVATE(ctx),\
 798  748                  minor_st, int_ctx_id, tkn, KCTX_TO_CTXV(ctx))
 799  749  
 800  750  #define KGSS_IMPORT_SEC_CONTEXT(minor_st, tkn, ctx, int_ctx_id) \
 801  751          (*(KCTX_TO_MECH(ctx)->gss_import_sec_context))(KCTX_TO_PRIVATE(ctx),\
 802  752                  minor_st, tkn, int_ctx_id)
 803  753  
 804      -/* EXPORT DELETE START */
 805  754  #define KGSS_SEAL(minor_st, ctx, conf_req, qop, msg, conf_state, tkn) \
 806  755          (*(KCTX_TO_MECH(ctx)->gss_seal))(KCTX_TO_PRIVATE(ctx), minor_st, \
 807  756                  KCTX_TO_CTX(ctx), conf_req, qop, msg, conf_state, tkn,\
 808  757                  KCTX_TO_CTXV(ctx))
 809  758  
 810  759  #define KGSS_UNSEAL(minor_st, ctx, msg, tkn, conf, qop) \
 811  760          (*(KCTX_TO_MECH(ctx)->gss_unseal))(KCTX_TO_PRIVATE(ctx), minor_st,\
 812  761                  KCTX_TO_CTX(ctx), msg, tkn, conf, qop, \
 813  762                  KCTX_TO_CTXV(ctx))
 814  763  
 815      -/* EXPORT DELETE END */
 816      -
 817  764  #define KGSS_INIT_CONTEXT(ctx) krb5_init_context(ctx)
 818  765  #define KGSS_RELEASE_OID(minor_st, oid) krb5_gss_release_oid(minor_st, oid)
 819  766  extern OM_uint32 kgss_release_oid(OM_uint32 *, gss_OID *);
 820  767  
 821  768  #else /* !_KERNEL */
 822  769  
 823  770  #define KGSS_INIT_CONTEXT(ctx) krb5_gss_init_context(ctx)
 824  771  #define KGSS_RELEASE_OID(minor_st, oid) gss_release_oid(minor_st, oid)
 825  772  
 826  773  #define KCTX_TO_CTX(ctx)  (KCTX_TO_KGSS_CTX(ctx)->gssd_ctx)
↓ open down ↓ 146 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX