LIBDONE=DONE
LIB_SUBDIRSS=.
-SRCS = gss_acquire_cred.c \
- gss_release_cred.c \
- gss_init_sec_context.c \
- gss_accept_sec_context.c \
- gss_process_context.c \
- gss_delete_sec_context.c \
- gss_context_time.c \
- gss_sign.c \
- gss_verify.c \
- gss_seal.c \
- gss_unseal.c \
- gss_display_status.c \
- gss_indicate_mechs.c \
- gss_compare_name.c \
- gss_display_name.c \
- gss_import_name.c \
- gss_release_name.c \
- gss_release_buffer.c \
- gss_release_oid_set.c \
- gss_inquire_cred.c \
- gss_initialize.c \
- get_mech_type.c \
+SRCS = g_acquire_cred.c \
+ g_rel_cred.c \
+ g_init_sec_context.c \
+ g_accept_sec_context.c \
+ g_process_context.c \
+ g_delete_sec_context.c \
+ g_context_time.c \
+ g_sign.c \
+ g_verify.c \
+ g_seal.c \
+ g_unseal.c \
+ g_dsp_status.c \
+ g_indicate_mechs.c \
+ g_compare_name.c \
+ g_dsp_name.c \
+ g_imp_name.c \
+ g_rel_name.c \
+ g_rel_buffer.c \
+ g_rel_oid_set.c \
+ g_inquire_cred.c \
+ g_initialize.c \
+ get_mtype.c \
get_mechanism.c \
internal_name.c \
gssd_pname_to_uid.c \
add_mechanism.c
-OBJS = gss_acquire_cred.$(OBJEXT) \
- gss_release_cred.$(OBJEXT) \
- gss_init_sec_context.$(OBJEXT) \
- gss_accept_sec_context.$(OBJEXT) \
- gss_process_context.$(OBJEXT) \
- gss_delete_sec_context.$(OBJEXT) \
- gss_context_time.$(OBJEXT) \
- gss_sign.$(OBJEXT) \
- gss_verify.$(OBJEXT) \
- gss_seal.$(OBJEXT) \
- gss_unseal.$(OBJEXT) \
- gss_display_status.$(OBJEXT) \
- gss_indicate_mechs.$(OBJEXT) \
- gss_compare_name.$(OBJEXT) \
- gss_display_name.$(OBJEXT) \
- gss_import_name.$(OBJEXT) \
- gss_release_name.$(OBJEXT) \
- gss_release_buffer.$(OBJEXT) \
- gss_release_oid_set.$(OBJEXT) \
- gss_inquire_cred.$(OBJEXT) \
- gss_initialize.$(OBJEXT) \
- get_mech_type.$(OBJEXT) \
+OBJS = g_acquire_cred.$(OBJEXT) \
+ g_rel_cred.$(OBJEXT) \
+ g_init_sec_context.$(OBJEXT) \
+ g_accept_sec_context.$(OBJEXT) \
+ g_process_context.$(OBJEXT) \
+ g_delete_sec_context.$(OBJEXT) \
+ g_context_time.$(OBJEXT) \
+ g_sign.$(OBJEXT) \
+ g_verify.$(OBJEXT) \
+ g_seal.$(OBJEXT) \
+ g_unseal.$(OBJEXT) \
+ g_dsp_status.$(OBJEXT) \
+ g_indicate_mechs.$(OBJEXT) \
+ g_compare_name.$(OBJEXT) \
+ g_dsp_name.$(OBJEXT) \
+ g_imp_name.$(OBJEXT) \
+ g_rel_name.$(OBJEXT) \
+ g_rel_buffer.$(OBJEXT) \
+ g_rel_oid_set.$(OBJEXT) \
+ g_inquire_cred.$(OBJEXT) \
+ g_initialize.$(OBJEXT) \
+ get_mtype.$(OBJEXT) \
get_mechanism.$(OBJEXT) \
internal_name.$(OBJEXT) \
gssd_pname_to_uid.$(OBJEXT) \
add_mechanism.$(OBJEXT)
+EHDRDIR= $(BUILDTOP)$(S)include$(S)gssapi
EXPORTED_HEADERS = mechglue.h
-all:: all-$(WHAT) $(OBJS)
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
-all-unix::
+all:: all-$(WHAT)
-all-mac::
+all-unix:: shared includes $(OBJS)
-all-windows::
+all-mac:: shared includes $(OBJS)
+
+all-windows:: includes $(OBJS)
if not exist $(EHDRDIR)\nul mkdir $(EHDRDIR)
copy mechglue.h $(EHDRDIR)
+shared:
+ mkdir shared
+
unixmac:
libgssapi.$(LIBEXT): $(OBJS)
clean:: clean-$(WHAT)
clean-unix::
+ $(RM) shared/*
clean-mac::
+ $(RM) shared/*
clean-windows::
$(RM) $(EHDRDIR)\gssapi.h $(EHDRDIR)\gssapi_generic.h
do $(INSTALL_DATA) $(srcdir)$(S)$$f \
$(DESTDIR)$(KRB5_INCDIR)$(S)gssapi$(S)$$f ; \
done
+
+includes::
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
#include <errno.h>
static struct gss_config null_mech = {
AC_PROG_ARCHIVE
AC_PROG_RANLIB
AC_PROG_INSTALL
+V5_SHARED_LIB_OBJS
+SubdirLibraryRule([${OBJS}])
CopySrcHeader(mechglue.h,[$(EHDRDIR)])
-AppendRule([install:: libgssapi.[$](LIBEXT)
- [$](INSTALL_DATA) libgssapi.[$](LIBEXT) [$](DESTDIR)[$](KRB5_LIBDIR)[$](S)libgssapi.[$](LIBEXT)])
-LinkFileDir([$](TOPLIBD)/libgssapi.[$](LIBEXT),libgssapi.[$](LIBEXT),./gssapi/mechglue)
-AppendRule([all:: [$](TOPLIBD)/libgssapi.[$](LIBEXT)])
+dnl AppendRule([install:: libgssapi.[$](LIBEXT)
+dnl [$](INSTALL_DATA) libgssapi.[$](LIBEXT) [$](DESTDIR)[$](KRB5_LIBDIR)[$](S)libgssapi.[$](LIBEXT)])
+dnl LinkFileDir([$](TOPLIBD)/libgssapi.[$](LIBEXT),libgssapi.[$](LIBEXT),./gssapi/mechglue)
+dnl AppendRule([all:: [$](TOPLIBD)/libgssapi.[$](LIBEXT)])
V5_AC_OUTPUT_MAKEFILE
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_accept_sec_context (minor_status,
gss_name_t * src_name;
gss_OID * mech_type;
gss_buffer_t output_token;
-int * ret_flags;
+OM_uint32 * ret_flags;
OM_uint32 * time_rec;
gss_cred_id_t * delegated_cred_handle;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_acquire_cred(minor_status,
if (minor_status)
*minor_status = 0;
- if (desired_name == GSS_C_NO_NAME)
+ if (desired_name == 0)
return GSS_S_BAD_NAME;
/* No need to continue if we don't have a place to store the creds */
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_compare_name (minor_status,
gss_initialize();
- if (name1 == GSS_C_NO_NAME || name2 == GSS_C_NO_NAME) {
+ if (name1 == 0 || name2 == 0) {
if (name_equal)
*name_equal = 0;
return GSS_S_BAD_NAME;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_context_time (minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_delete_sec_context (minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_display_name (minor_status,
* to the name_type component of union_name
*/
- if (input_name == GSS_C_NO_NAME)
+ if (input_name == 0)
return GSS_S_BAD_NAME;
union_name = (gss_union_name_t) input_name;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_display_status (minor_status,
status_string)
OM_uint32 * minor_status;
-int status_value;
+OM_uint32 status_value;
int status_type;
-const_gss_OID req_mech_type;
-int * message_context;
+gss_OID req_mech_type;
+OM_uint32 * message_context;
gss_buffer_t status_string;
{
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_import_name(minor_status,
OM_uint32 * minor_status;
gss_buffer_t input_name_buffer;
-const_gss_OID input_name_type;
+gss_OID input_name_type;
gss_name_t * output_name;
{
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
extern gss_mechanism *mechs_array;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_init_sec_context (minor_status,
ret_flags,
time_rec)
-OM_uint32 * minor_status;
+OM_uint32 FAR * minor_status;
gss_cred_id_t claimant_cred_handle;
gss_ctx_id_t * context_handle;
gss_name_t target_name;
-const_gss_OID req_mech_type;
-int req_flags;
-int time_req;
+gss_OID req_mech_type;
+OM_uint32 req_flags;
+OM_uint32 time_req;
gss_channel_bindings_t input_chan_bindings;
gss_buffer_t input_token;
-gss_OID * actual_mech_type;
+gss_OID FAR * actual_mech_type;
gss_buffer_t output_token;
-int * ret_flags;
-OM_uint32 * time_rec;
+OM_uint32 FAR * ret_flags;
+OM_uint32 FAR * time_rec;
{
OM_uint32 status, temp_status, temp_minor_status;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
static int _gss_initialized = 0;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_inquire_cred(minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_process_context_token (minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_release_buffer (minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_release_cred(minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_release_name (minor_status,
/* if input_name is NULL, return error */
- if(input_name == GSS_C_NO_NAME)
+ if (input_name == 0)
return(GSS_S_BAD_NAME);
/*
*/
union_name = (gss_union_name_t) *input_name;
- *input_name = GSS_C_NO_NAME;
+ *input_name = 0;
*minor_status = 0;
if (union_name == NULL)
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_release_oid_set (minor_status,
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_seal (minor_status,
return(GSS_S_NO_CONTEXT);
}
+
+OM_uint32
+gss_wrap (minor_status,
+ context_handle,
+ conf_req_flag,
+ qop_req,
+ input_message_buffer,
+ conf_state,
+ output_message_buffer)
+
+OM_uint32 * minor_status;
+gss_ctx_id_t context_handle;
+int conf_req_flag;
+gss_qop_t qop_req;
+gss_buffer_t input_message_buffer;
+int * conf_state;
+gss_buffer_t output_message_buffer;
+
+{
+ return gss_seal(minor_status, context_handle, conf_req_flag,
+ (int) qop_req, input_message_buffer, conf_state,
+ output_message_buffer);
+}
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_sign (minor_status,
return(GSS_S_NO_CONTEXT);
}
+
+OM_uint32
+gss_get_mic (minor_status,
+ context_handle,
+ qop_req,
+ message_buffer,
+ msg_token)
+
+OM_uint32 * minor_status;
+gss_ctx_id_t context_handle;
+gss_qop_t qop_req;
+gss_buffer_t message_buffer;
+gss_buffer_t msg_token;
+
+{
+ return (gss_sign(minor_status, context_handle, (int) qop_req,
+ message_buffer, msg_token));
+}
+
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_unseal (minor_status,
return(GSS_S_NO_CONTEXT);
}
+
+OM_uint32
+gss_unwrap (minor_status,
+ context_handle,
+ input_message_buffer,
+ output_message_buffer,
+ conf_state,
+ qop_state)
+
+OM_uint32 * minor_status;
+gss_ctx_id_t context_handle;
+gss_buffer_t input_message_buffer;
+gss_buffer_t output_message_buffer;
+int * conf_state;
+gss_qop_t * qop_state;
+
+{
+ return (gss_unseal(minor_status, context_handle,
+ input_message_buffer,
+ output_message_buffer,
+ conf_state, (int *) qop_state));
+}
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32
gss_verify (minor_status,
return(GSS_S_NO_CONTEXT);
}
+
+OM_uint32
+gss_verify_misc (minor_status,
+ context_handle,
+ message_buffer,
+ token_buffer,
+ qop_state)
+
+OM_uint32 * minor_status;
+gss_ctx_id_t context_handle;
+gss_buffer_t message_buffer;
+gss_buffer_t token_buffer;
+gss_qop_t * qop_state;
+
+{
+ return (gss_verify(minor_status, context_handle,
+ message_buffer, token_buffer, (int *) qop_state));
+}
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
extern gss_mechanism *mechs_array;
-gss_mechanism get_mechanism (const_gss_OID type)
+gss_mechanism get_mechanism (gss_OID type)
{
int i;
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32 get_mech_type(OID, token)
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
int gssd_pname_to_uid(pname, name_type, mech_type, uid)
* All rights reserved.
*/
-#include "mechglueP.h"
+#include "mglueP.h"
OM_uint32 import_internal_name (minor_status, mech_type, union_name,
internal_name)
gss_cred_id_t, /* claimant_cred_handle */
gss_ctx_id_t*, /* context_handle */
gss_name_t, /* target_name */
- const_gss_OID, /* mech_type */
+ gss_OID, /* mech_type */
int, /* req_flags */
OM_uint32, /* time_req */
gss_channel_bindings_t, /* input_chan_bindings */
OM_uint32*, /* minor_status */
OM_uint32, /* status_value */
int, /* status_type */
- const_gss_OID, /* mech_type */
+ gss_OID, /* mech_type */
int*, /* message_context */
gss_buffer_t /* status_string */
);
(void*, /* context */
OM_uint32*, /* minor_status */
gss_buffer_t, /* input_name_buffer */
- const_gss_OID, /* input_name_type */
+ gss_OID, /* input_name_type */
gss_name_t* /* output_name */
);
OM_uint32 (*gss_release_name)
int *, /* cred_usage */
gss_OID_set * /* mechanisms */
);
+ OM_uint32 (*gss_add_cred)
+ (void*, /* context */
+ OM_uint32 *, /* minor_status */
+ gss_cred_id_t, /* input_cred_handle */
+ gss_name_t, /* desired_name */
+ gss_OID, /* desired_mech */
+ gss_cred_usage_t, /* cred_usage */
+ OM_uint32, /* initiator_time_req */
+ OM_uint32, /* acceptor_time_req */
+ gss_cred_id_t *, /* output_cred_handle */
+ gss_OID_set *, /* actual_mechs */
+ OM_uint32 *, /* initiator_time_rec */
+ OM_uint32 * /* acceptor_time_rec */
+ );
+ OM_uint32 (*gss_export_sec_context)
+ (void*, /* context */
+ OM_uint32 *, /* minor_status */
+ gss_ctx_id_t *, /* context_handle */
+ gss_buffer_t /* interprocess_token */
+ );
+ OM_uint32 (*gss_import_sec_context)
+ (void *, /* context */
+ OM_uint32 *, /* minor_status */
+ gss_buffer_t, /* interprocess_token */
+ gss_ctx_id_t * /* context_handle */
+ );
+ OM_uint32 (*gss_inquire_cred_by_mech)
+ (void *, /* context */
+ OM_uint32 *, /* minor_status */
+ gss_cred_id_t, /* cred_handle */
+ gss_OID, /* mech_type */
+ gss_name_t *, /* name */
+ OM_uint32 *, /* initiator_lifetime */
+ OM_uint32 *, /* acceptor_lifetime */
+ gss_cred_usage_t * /* cred_usage */
+ );
+
+ OM_uint32 (*gss_inquire_names_for_mech)
+ (void *, /* context */
+ OM_uint32 *, /* minor_status */
+ gss_OID, /* mechanism */
+ gss_OID_set * /* name_types */
+ );
int (*pname_to_uid)
(char *, /* pname */
gss_OID, /* name type */
/********************************************************/
/* Internal mechglue routines */
-gss_mechanism get_mechanism (const_gss_OID);
+gss_mechanism get_mechanism (gss_OID);
OM_uint32 add_mechanism (gss_mechanism, int);
OM_uint32 get_mech_type(gss_OID *, gss_buffer_t);
OM_uint32 import_internal_name (OM_uint32 *, gss_OID, gss_union_name_t,