diff options
author | Theodore Tso <tytso@mit.edu> | 1996-02-07 05:04:58 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1996-02-07 05:04:58 +0000 |
commit | a6b669132f87a17a2cdd6d804f4c048e15219137 (patch) | |
tree | 66d69da7f92ed425c72cf4c2db490afe71540cf1 /src/lib/gssapi/mechglue/g_rel_oid_set.c | |
parent | 041bca12105d58f54ce2bfefb6ed67d47222b7f8 (diff) | |
download | krb5-a6b669132f87a17a2cdd6d804f4c048e15219137.zip krb5-a6b669132f87a17a2cdd6d804f4c048e15219137.tar.gz krb5-a6b669132f87a17a2cdd6d804f4c048e15219137.tar.bz2 |
Commited new snapshot from Roland Schemers at Sun
This snapshot features a BSD-style copyright notice from Sun. It also
includes the code to parse a configuration file and then dlopen the
proper shared library. Miscellaneous cleanup in the mechglue directory.
Namespace uglieness (like get_mechanism) have been cleaned up, to use
things like __gss_get_mechanism instead.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7442 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/mechglue/g_rel_oid_set.c')
-rw-r--r-- | src/lib/gssapi/mechglue/g_rel_oid_set.c | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/src/lib/gssapi/mechglue/g_rel_oid_set.c b/src/lib/gssapi/mechglue/g_rel_oid_set.c index 4bcdd3e..0f6fb43 100644 --- a/src/lib/gssapi/mechglue/g_rel_oid_set.c +++ b/src/lib/gssapi/mechglue/g_rel_oid_set.c @@ -1,9 +1,29 @@ #ident "@(#)gss_release_oid_set.c 1.12 95/08/23 SMI" + +/* + * Copyright 1996 by Sun Microsystems, Inc. + * + * Permission to use, copy, modify, distribute, and sell this software + * and its documentation for any purpose is hereby granted without fee, + * provided that the above copyright notice appears in all copies and + * that both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of Sun Microsystems not be used + * in advertising or publicity pertaining to distribution of the software + * without specific, written prior permission. Sun Microsystems makes no + * representations about the suitability of this software for any + * purpose. It is provided "as is" without express or implied warranty. + * + * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + /* * glue routine for gss_release_oid_set - * - * Copyright (c) 1995, by Sun Microsystems, Inc. - * All rights reserved. */ #include "mglueP.h" @@ -19,8 +39,8 @@ OM_uint32 * minor_status; gss_OID_set * set; { size_t index; - OM_uint32 status; - + OM_uint32 temp_minor; + gss_OID oid; if (minor_status) *minor_status = 0; @@ -30,8 +50,10 @@ gss_OID_set * set; if (*set == GSS_C_NULL_OID_SET) return(GSS_S_COMPLETE); - for (index=0; index<(*set)->count; index++) - free((*set)->elements[index].elements); + for (index=0; index<(*set)->count; index++) { + oid = &(*set)->elements[index]; + gss_release_oid(&temp_minor, &oid); + } free((*set)->elements); free(*set); |