Add {im,ex}port_sec_context wrapper routines
authorPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 18:42:39 +0000 (18:42 +0000)
committerPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 18:42:39 +0000 (18:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6626 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/krb5_gss_glue.c

index 58489314366b01c361d6b71a8cbe7988d7455233..abb57131f7ec066880585e9b791a6a50dfd35974 100644 (file)
@@ -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;