From 8f55a568f69c5b2fadaa020a452c2043a7dcf65f Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Wed, 6 Aug 2008 14:02:05 +0000 Subject: Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This is based on an old implementation from the University of Michigan with lots of changes and fixes by me and the addition of a Solaris-compatible API. Sponsored by: Isilon Systems Reviewed by: alfred --- lib/libgssapi/gss_utils.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/libgssapi/gss_utils.c') diff --git a/lib/libgssapi/gss_utils.c b/lib/libgssapi/gss_utils.c index ec582a9bd1a47..992908bea9493 100644 --- a/lib/libgssapi/gss_utils.c +++ b/lib/libgssapi/gss_utils.c @@ -66,6 +66,18 @@ _gss_copy_oid(OM_uint32 *minor_status, return (GSS_S_COMPLETE); } +OM_uint32 +_gss_free_oid(OM_uint32 *minor_status, gss_OID oid) +{ + + *minor_status = 0; + if (oid->elements) { + free(oid->elements); + oid->elements = NULL; + oid->length = 0; + } + return (GSS_S_COMPLETE); +} OM_uint32 _gss_copy_buffer(OM_uint32 *minor_status, -- cgit v1.2.3