From 753635706d708b027893cac460282ebb98708262 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 1 May 2003 00:15:34 +0000 Subject: [PATCH] Add. --- gss/Makefile.am | 2 +- gss/context.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gss/cred.c | 74 +++++++++++++++++++++++++++++++++++++ gss/msg.c | 61 ++++++++++++++++++++++++++++++ 4 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 gss/context.c create mode 100644 gss/cred.c create mode 100644 gss/msg.c diff --git a/gss/Makefile.am b/gss/Makefile.am index a0fb8376..ecd2c94a 100644 --- a/gss/Makefile.am +++ b/gss/Makefile.am @@ -19,7 +19,7 @@ # Boston, MA 02111-1307, USA. lib_LTLIBRARIES = libshishi-gss.la -libshishi_gss_la_SOURCES = internal.h oid.c name.c +libshishi_gss_la_SOURCES = internal.h oid.c cred.c context.c msg.c name.c libshishi_gss_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) INCLUDES = -I../intl -I../lib \ diff --git a/gss/context.c b/gss/context.c new file mode 100644 index 00000000..a534a70d --- /dev/null +++ b/gss/context.c @@ -0,0 +1,112 @@ +/* context.c Implementation of GSS-API Context functions. + * Copyright (C) 2003 Simon Josefsson + * + * This file is part of Shishi. + * + * Shishi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Shishi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Shishi; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include "internal.h" + +OM_uint32 +gss_init_sec_context (OM_uint32 *minor_status, + const gss_cred_id_t initiator_cred_handle, + gss_ctx_id_t *context_handle, + const gss_name_t target_name, + const gss_OID mech_type, + OM_uint32 req_flags, + OM_uint32 time_req, + const gss_channel_bindings_t input_chan_bindings, + const gss_buffer_t input_token, + gss_OID *actual_mech_type, + gss_buffer_t output_token, + OM_uint32 *ret_flags, + OM_uint32 *time_rec) +{ +} + +OM_uint32 +gss_accept_sec_context (OM_uint32 *minor_status, + gss_ctx_id_t *context_handle, + const gss_cred_id_t acceptor_cred_handle, + const gss_buffer_t input_token_buffer, + const gss_channel_bindings_t input_chan_bindings, + gss_name_t *src_name, + gss_OID *mech_type, + gss_buffer_t output_token, + OM_uint32 *ret_flags, + OM_uint32 *time_rec, + gss_cred_id_t *delegated_cred_handle) +{ +} + +OM_uint32 +gss_delete_sec_context (OM_uint32 *minor_status, + gss_ctx_id_t *context_handle, + gss_buffer_t output_token) +{ +} + +OM_uint32 +gss_process_context_token (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + const gss_buffer_t token_buffer) +{ +} + +OM_uint32 +gss_context_time (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + OM_uint32 *time_rec) +{ +} + +OM_uint32 +gss_inquire_context (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + gss_name_t *src_name, + gss_name_t *targ_name, + OM_uint32 *lifetime_rec, + gss_OID *mech_type, + OM_uint32 *ctx_flags, + int *locally_initiated, + int *open) +{ +} + +OM_uint32 +gss_wrap_size_limit (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + int conf_req_flag, + gss_qop_t qop_req, + OM_uint32 req_output_size, + OM_uint32 *max_input_size) +{ +} + +OM_uint32 +gss_export_sec_context (OM_uint32 *minor_status, + gss_ctx_id_t *context_handle, + gss_buffer_t interprocess_token) +{ +} + +OM_uint32 +gss_import_sec_context (OM_uint32 *minor_status, + const gss_buffer_t interprocess_token, + gss_ctx_id_t *context_handle) +{ +} diff --git a/gss/cred.c b/gss/cred.c new file mode 100644 index 00000000..f5fa824e --- /dev/null +++ b/gss/cred.c @@ -0,0 +1,74 @@ +/* cred.c Implementation of GSS-API Credential Management functions. + * Copyright (C) 2003 Simon Josefsson + * + * This file is part of Shishi. + * + * Shishi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Shishi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Shishi; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include "internal.h" + +OM_uint32 +gss_acquire_cred (OM_uint32 *minor_status, + const gss_name_t desired_name, + OM_uint32 time_req, + const gss_OID_set desired_mechs, + gss_cred_usage_t cred_usage, + gss_cred_id_t *output_cred_handle, + gss_OID_set *actual_mechs, + OM_uint32 *time_rec) +{ +} + +OM_uint32 +gss_add_cred (OM_uint32 *minor_status, + const gss_cred_id_t input_cred_handle, + const gss_name_t desired_name, + const 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_inquire_cred (OM_uint32 *minor_status, + const gss_cred_id_t cred_handle, + gss_name_t *name, + OM_uint32 *lifetime, + gss_cred_usage_t *cred_usage, + gss_OID_set *mechanisms) +{ +} + +OM_uint32 +gss_inquire_cred_by_mech (OM_uint32 *minor_status, + const gss_cred_id_t cred_handle, + const 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_release_cred (OM_uint32 *minor_status, + gss_cred_id_t *cred_handle) +{ +} diff --git a/gss/msg.c b/gss/msg.c new file mode 100644 index 00000000..6970b602 --- /dev/null +++ b/gss/msg.c @@ -0,0 +1,61 @@ +/* name.c Implementation of GSS-API Name Manipulation functions. + * Copyright (C) 2003 Simon Josefsson + * + * This file is part of Shishi. + * + * Shishi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Shishi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Shishi; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include "internal.h" + +OM_uint32 +gss_get_mic (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + gss_qop_t qop_req, + const gss_buffer_t message_buffer, + gss_buffer_t message_token) +{ +} + +OM_uint32 +gss_verify_mic (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + const gss_buffer_t message_buffer, + const gss_buffer_t token_buffer, + gss_qop_t * qop_state) +{ +} + +OM_uint32 +gss_wrap (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + int conf_req_flag, + gss_qop_t qop_req, + const gss_buffer_t input_message_buffer, + int *conf_state, + gss_buffer_t output_message_buffer) +{ +} + +OM_uint32 +gss_unwrap (OM_uint32 *minor_status, + const gss_ctx_id_t context_handle, + const gss_buffer_t input_message_buffer, + gss_buffer_t output_message_buffer, + int *conf_state, + gss_qop_t *qop_state) +{ +} -- 2.11.4.GIT