#-1# Copyright (c) 2008 Isilon Inc http://www.isilon.com/2# Authors: Doug Rabson <[email protected]>3# Developed with Red Inc: Alfred Perlstein <[email protected]>4#5# Redistribution and use in source and binary forms, with or without6# modification, are permitted provided that the following conditions7# are met:8# 1. Redistributions of source code must retain the above copyright9# notice, this list of conditions and the following disclaimer.10# 2. Redistributions in binary form must reproduce the above copyright11# notice, this list of conditions and the following disclaimer in the12# documentation and/or other materials provided with the distribution.13#14# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND15# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE16# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE17# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF24# SUCH DAMAGE.25#2627# Interface for the in-kernel part of a GSS-API mechanism2829#include <kgssapi/gssapi.h>30#include "gssd.h"3132INTERFACE kgss;3334METHOD void init {35gss_ctx_id_t ctx;36};3738METHOD OM_uint32 import {39gss_ctx_id_t ctx;40enum sec_context_format format;41const gss_buffer_t context_token;42};4344METHOD void delete {45gss_ctx_id_t ctx;46gss_buffer_t output_token;47};4849METHOD gss_OID mech_type {50gss_ctx_id_t ctx;51};5253METHOD OM_uint32 get_mic {54gss_ctx_id_t ctx;55OM_uint32 *minor_status;56gss_qop_t qop_req;57struct mbuf *message_buffer;58struct mbuf **message_token;59};6061METHOD OM_uint32 verify_mic {62gss_ctx_id_t ctx;63OM_uint32 *minor_status;64struct mbuf *message_buffer;65struct mbuf *token_buffer;66gss_qop_t *qop_state;67};6869METHOD OM_uint32 wrap {70gss_ctx_id_t ctx;71OM_uint32 *minor_status;72int conf_req_flag;73gss_qop_t qop_req;74struct mbuf **message_buffer;75int *conf_state;76};7778METHOD OM_uint32 unwrap {79gss_ctx_id_t ctx;80OM_uint32 *minor_status;81struct mbuf **message_buffer;82int *conf_state;83gss_qop_t *qop_state;84};8586METHOD OM_uint32 wrap_size_limit {87gss_ctx_id_t ctx;88OM_uint32 *minor_status;89int conf_req_flag;90gss_qop_t qop_req;91OM_uint32 req_ouput_size;92OM_uint32 *max_input_size;93}949596