From fa41f1f9c6909efc0e4ca2568077b71a6933f856 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 29 Aug 1995 18:42:39 +0000 Subject: [PATCH] Add {im,ex}port_sec_context wrapper routines git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6626 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/krb5_gss_glue.c | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/lib/gssapi/krb5/krb5_gss_glue.c b/src/lib/gssapi/krb5/krb5_gss_glue.c index 584893143..abb57131f 100644 --- a/src/lib/gssapi/krb5/krb5_gss_glue.c +++ b/src/lib/gssapi/krb5/krb5_gss_glue.c @@ -175,6 +175,21 @@ gss_display_status(minor_status, status_value, status_type, status_string)); } +OM_uint32 INTERFACE +gss_export_sec_context(minor_status, context_handle, interprocess_token) + OM_uint32 *minor_status; + gss_ctx_id_t *context_handle; + gss_buffer_t interprocess_token; +{ + if (!kg_context && kg_get_context()) + return GSS_S_FAILURE; + + return(krb5_gss_export_sec_context(kg_context, + minor_status, + context_handle, + interprocess_token)); +} + OM_uint32 INTERFACE gss_import_name(minor_status, input_name_buffer, input_name_type, output_name) OM_uint32 *minor_status; @@ -189,6 +204,21 @@ gss_import_name(minor_status, input_name_buffer, input_name_type, output_name) input_name_type, output_name)); } +OM_uint32 INTERFACE +gss_import_sec_context(minor_status, interprocess_token, context_handle) + OM_uint32 *minor_status; + gss_buffer_t interprocess_token; + gss_ctx_id_t *context_handle; +{ + if (!kg_context && kg_get_context()) + return GSS_S_FAILURE; + + return(krb5_gss_import_sec_context(kg_context, + minor_status, + interprocess_token, + context_handle)); +} + OM_uint32 INTERFACE gss_indicate_mechs(minor_status, mech_set) OM_uint32 *minor_status; -- 2.26.2