summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/rel_sec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gssapi/rel_sec.c')
-rw-r--r--src/lib/gssapi/rel_sec.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/gssapi/rel_sec.c b/src/lib/gssapi/rel_sec.c
new file mode 100644
index 000000000..8702e9899
--- /dev/null
+++ b/src/lib/gssapi/rel_sec.c
@@ -0,0 +1,31 @@
+/*
+ * rel_buffer.c --- release a security context
+ *
+ * $Source$
+ * $Author$
+ * $Header$
+ *
+ * Copyright 1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ */
+
+#include <gssapi.h>
+
+OM_uint32 gss_release_security_context(minor_status, context)
+ OM_uint32 *minor_status;
+ gss_ctx_id_t context;
+{
+ *minor_status = 0;
+
+ krb5_free_principal(context->me);
+ krb5_free_principal(context->him);
+
+ context->state = GSS_KRB5_STATE_DOWN;
+ return(GSS_S_COMPLETE);
+}
+
+