krb5_gss_wrap_size_limit,
krb5_gss_export_name,
NULL, /* store_cred */
- NULL, /* import_name_object */
- NULL, /* export_name_object */
krb5_gss_inquire_sec_context_by_oid,
krb5_gss_inquire_cred_by_oid,
krb5_gss_set_sec_context_option,
gss_display_status
gss_duplicate_name
gss_export_name
-gss_export_name_object
gss_export_sec_context
gss_get_mic
gss_import_name
-gss_import_name_object
gss_import_sec_context
gss_indicate_mechs
gss_init_sec_context
$(srcdir)/g_dup_name.c \
$(srcdir)/g_exp_sec_context.c \
$(srcdir)/g_export_name.c \
- $(srcdir)/g_export_name_object.c \
$(srcdir)/g_glue.c \
$(srcdir)/g_imp_name.c \
- $(srcdir)/g_imp_name_object.c \
$(srcdir)/g_imp_sec_context.c \
$(srcdir)/g_init_sec_context.c \
$(srcdir)/g_initialize.c \
$(OUTPRE)g_dup_name.$(OBJEXT) \
$(OUTPRE)g_exp_sec_context.$(OBJEXT) \
$(OUTPRE)g_export_name.$(OBJEXT) \
- $(OUTPRE)g_export_name_object.$(OBJEXT) \
$(OUTPRE)g_glue.$(OBJEXT) \
$(OUTPRE)g_imp_name.$(OBJEXT) \
- $(OUTPRE)g_imp_name_object.$(OBJEXT) \
$(OUTPRE)g_imp_sec_context.$(OBJEXT) \
$(OUTPRE)g_init_sec_context.$(OBJEXT) \
$(OUTPRE)g_initialize.$(OBJEXT) \
g_dup_name.o \
g_exp_sec_context.o \
g_export_name.o \
- g_export_name_object.o \
g_glue.o \
g_imp_name.o \
- g_imp_name_object.o \
g_imp_sec_context.o \
g_init_sec_context.o \
g_initialize.o \
$(srcdir)/../generic/gssapi_ext.h $(srcdir)/../generic/gssapi_generic.h \
../generic/gssapi_err_generic.h g_export_name.c mechglue.h \
mglueP.h
-g_export_name_object.so g_export_name_object.po $(OUTPRE)g_export_name_object.$(OBJEXT): \
- $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/gssapi/gssapi.h \
- $(BUILDTOP)/include/gssapi/gssapi_ext.h $(COM_ERR_DEPS) \
- $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-platform.h \
- $(SRCTOP)/include/k5-thread.h $(srcdir)/../generic/gssapiP_generic.h \
- $(srcdir)/../generic/gssapi_ext.h $(srcdir)/../generic/gssapi_generic.h \
- ../generic/gssapi_err_generic.h g_export_name_object.c \
- mechglue.h mglueP.h
g_glue.so g_glue.po $(OUTPRE)g_glue.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
$(BUILDTOP)/include/gssapi/gssapi.h $(BUILDTOP)/include/gssapi/gssapi_ext.h \
$(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-platform.h \
$(srcdir)/../generic/gssapi_ext.h $(srcdir)/../generic/gssapi_generic.h \
../generic/gssapi_err_generic.h g_imp_name.c mechglue.h \
mglueP.h
-g_imp_name_object.so g_imp_name_object.po $(OUTPRE)g_imp_name_object.$(OBJEXT): \
- $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/gssapi/gssapi.h \
- $(BUILDTOP)/include/gssapi/gssapi_ext.h $(COM_ERR_DEPS) \
- $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-platform.h \
- $(SRCTOP)/include/k5-thread.h $(srcdir)/../generic/gssapiP_generic.h \
- $(srcdir)/../generic/gssapi_ext.h $(srcdir)/../generic/gssapi_generic.h \
- ../generic/gssapi_err_generic.h g_imp_name_object.c \
- mechglue.h mglueP.h
g_imp_sec_context.so g_imp_sec_context.po $(OUTPRE)g_imp_sec_context.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/gssapi/gssapi.h \
$(BUILDTOP)/include/gssapi/gssapi_ext.h $(COM_ERR_DEPS) \
+++ /dev/null
-/*
- * Copyright (c) 1996,1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-/* #pragma ident "@(#)g_export_name.c 1.11 00/07/17 SMI" */
-
-/*
- * glue routine gss_export_name_object_object_object_object
- *
- * Will either call the mechanism defined gss_export_name, or if one is
- * not defined will call a generic_gss_export_name routine.
- */
-
-#include <mglueP.h>
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include <string.h>
-#include <errno.h>
-
-OM_uint32 KRB5_CALLCONV
-gss_export_name_object(minor_status,
- input_name,
- desired_name_type,
- output_name)
-OM_uint32 * minor_status;
-const gss_name_t input_name;
-gss_OID desired_name_type;
-void ** output_name;
-{
- gss_union_name_t union_name;
- gss_mechanism mech;
- OM_uint32 major_status;
-
- if (minor_status != NULL)
- *minor_status = 0;
-
- if (output_name != NULL)
- *output_name = NULL;
-
- if (minor_status == NULL)
- return GSS_S_CALL_INACCESSIBLE_WRITE;
-
- if (input_name == NULL)
- return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
-
- if (desired_name_type == GSS_C_NO_OID)
- return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAMETYPE;
-
- if (output_name == NULL)
- return GSS_S_CALL_INACCESSIBLE_WRITE;
-
- union_name = (gss_union_name_t)input_name;
-
- if (union_name->mech_type == GSS_C_NO_OID)
- return GSS_S_NAME_NOT_MN;
-
- mech = gssint_get_mechanism(union_name->mech_type);
- if (mech == NULL)
- return GSS_S_BAD_MECH;
-
- if (mech->gss_export_name_object == NULL)
- return GSS_S_UNAVAILABLE;
-
- major_status = mech->gss_export_name_object(minor_status,
- input_name,
- desired_name_type,
- output_name);
- if (major_status != GSS_S_COMPLETE)
- map_error(minor_status, mech);
-
- return major_status;
-}
+++ /dev/null
-/* #pragma ident "@(#)g_imp_name.c 1.26 04/02/23 SMI" */
-
-/*
- * Copyright 1996 by Sun Microsystems, Inc.
- *
- * Permission to use, copy, modify, distribute, and sell this software
- * and its documentation for any purpose is hereby granted without fee,
- * provided that the above copyright notice appears in all copies and
- * that both that copyright notice and this permission notice appear in
- * supporting documentation, and that the name of Sun Microsystems not be used
- * in advertising or publicity pertaining to distribution of the software
- * without specific, written prior permission. Sun Microsystems makes no
- * representations about the suitability of this software for any
- * purpose. It is provided "as is" without express or implied warranty.
- *
- * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- * EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
- * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * glue routine gss_import_name_object
- *
- */
-
-#include "mglueP.h"
-#include <stdio.h>
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include <string.h>
-#include <errno.h>
-
-static OM_uint32
-val_imp_name_object_args(
- OM_uint32 *minor_status,
- void *input_name,
- gss_OID input_name_type,
- gss_name_t *output_name)
-{
- if (minor_status == NULL)
- return GSS_S_CALL_INACCESSIBLE_WRITE;
-
- *minor_status = 0;
-
- if (output_name == NULL)
- return GSS_S_CALL_INACCESSIBLE_WRITE;
-
- if (input_name_type == GSS_C_NO_OID)
- return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAMETYPE;
-
- if (input_name == NULL)
- return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
-
- return GSS_S_COMPLETE;
-}
-
-OM_uint32 KRB5_CALLCONV
-gss_import_name_object(minor_status,
- input_name,
- input_name_type,
- output_name)
-OM_uint32 * minor_status;
-void * input_name;
-gss_OID input_name_type;
-gss_name_t * output_name;
-{
- gss_union_name_t union_name = NULL;
- gss_mechanism mech = NULL;
- gss_name_t internal_name = GSS_C_NO_NAME;
- OM_uint32 tmp, major_status = GSS_S_FAILURE;
- gss_OID_set mechlist = GSS_C_NO_OID_SET;
- size_t i;
-
- major_status = val_imp_name_object_args(minor_status,
- input_name,
- input_name_type,
- output_name);
- if (major_status != GSS_S_COMPLETE)
- return major_status;
-
- major_status = gss_indicate_mechs(minor_status, &mechlist);
- if (major_status != GSS_S_COMPLETE)
- return major_status;
-
- major_status = GSS_S_BAD_NAMETYPE;
-
- for (i = 0; i < mechlist->count; i++) {
- mech = gssint_get_mechanism(&mechlist->elements[i]);
- if (mech == NULL || mech->gss_import_name_object == NULL)
- continue;
-
- major_status = mech->gss_import_name_object(minor_status,
- input_name,
- input_name_type,
- &internal_name);
- if (major_status != GSS_S_BAD_NAMETYPE)
- break;
- }
-
- if (major_status == GSS_S_COMPLETE) {
- assert(internal_name != GSS_C_NO_NAME);
-
- major_status = gssint_convert_name_to_union_name(minor_status,
- mech,
- internal_name,
- &union_name);
- if (major_status != GSS_S_COMPLETE) {
- if (mech->gss_release_name != NULL)
- mech->gss_release_name(&tmp, &internal_name);
- } else
- *output_name = (gss_name_t)union_name;
- } else
- map_error(minor_status, mech);
-
- generic_gss_release_oid_set(&tmp, &mechlist);
-
- return major_status;
-}
-
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_wrap_size_limit);
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_export_name);
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_store_cred);
- GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_import_name_object);
- GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_export_name_object);
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_inquire_sec_context_by_oid);
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_inquire_cred_by_oid);
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_set_sec_context_option);
gss_cred_usage_t * /* cred_usage_stored */
/* */);
- OM_uint32 (*gss_import_name_object)
- (
- OM_uint32 *, /* minor_status */
- void *, /* input_name */
- gss_OID, /* input_name_type */
- gss_name_t * /* output_name */
- /* */);
-
- OM_uint32 (*gss_export_name_object)
- (
- OM_uint32 *, /* minor_status */
- gss_name_t, /* input_name */
- gss_OID, /* desired_name_type */
- void ** /* output_name */
- /* */);
/* GGF extensions */
spnego_gss_wrap_size_limit, /* gss_wrap_size_limit */
NULL, /* gss_export_name */
NULL, /* gss_store_cred */
- NULL, /* gss_import_name_object */
- NULL, /* gss_export_name_object */
spnego_gss_inquire_sec_context_by_oid, /* gss_inquire_sec_context_by_oid */
NULL, /* gss_inquire_cred_by_oid */
spnego_gss_set_sec_context_option, /* gss_set_sec_context_option */