diff options
author | Theodore Tso <tytso@mit.edu> | 1991-05-06 15:14:31 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1991-05-06 15:14:31 +0000 |
commit | de8c3b49f993fa7583c710451cac8f7407f8859c (patch) | |
tree | fed1419e5656ababa393248d50b69707dc210a61 /src/lib/gssapi/rel_sec.c | |
parent | eab25e18ca94480e73d70f57b5cbc5cc04b87d45 (diff) | |
download | krb5-de8c3b49f993fa7583c710451cac8f7407f8859c.tar.gz krb5-de8c3b49f993fa7583c710451cac8f7407f8859c.tar.xz krb5-de8c3b49f993fa7583c710451cac8f7407f8859c.zip |
Initial Revision
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2099 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/rel_sec.c')
-rw-r--r-- | src/lib/gssapi/rel_sec.c | 31 |
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); +} + + |