181588Sru/*- 259892Sjasone * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ 379754Sdd * Authors: Doug Rabson <dfr@rabson.org> 459892Sjasone * Developed with Red Inc: Alfred Perlstein <alfred@freebsd.org> 559892Sjasone * 659892Sjasone * Redistribution and use in source and binary forms, with or without 759892Sjasone * modification, are permitted provided that the following conditions 859892Sjasone * are met: 959892Sjasone * 1. Redistributions of source code must retain the above copyright 1059892Sjasone * notice, this list of conditions and the following disclaimer. 1159892Sjasone * 2. Redistributions in binary form must reproduce the above copyright 1259892Sjasone * notice, this list of conditions and the following disclaimer in the 1359892Sjasone * documentation and/or other materials provided with the distribution. 1459892Sjasone * 1579754Sdd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1659892Sjasone * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1759892Sjasone * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1859892Sjasone * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1959892Sjasone * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2059892Sjasone * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2159892Sjasone * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2259892Sjasone * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2359892Sjasone * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2459892Sjasone * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2559892Sjasone * SUCH DAMAGE. 2659892Sjasone */ 2779754Sdd 2859892Sjasone#include <sys/cdefs.h> 2959892Sjasone__FBSDID("$FreeBSD$"); 3059892Sjasone 3159892Sjasone#include <sys/param.h> 3259892Sjasone#include <sys/kernel.h> 3359944Sphantom#include <sys/kobj.h> 3459944Sphantom#include <sys/malloc.h> 3559944Sphantom 3659944Sphantom#include <kgssapi/gssapi.h> 3759944Sphantom#include <kgssapi/gssapi_impl.h> 3859944Sphantom 3959944SphantomOM_uint32 4059944Sphantomgss_create_empty_oid_set(OM_uint32 *minor_status, 4159892Sjasone gss_OID_set *oid_set) 4259892Sjasone{ 43124535Sru gss_OID_set set; 4459892Sjasone 4584306Sru *minor_status = 0; 4659892Sjasone *oid_set = GSS_C_NO_OID_SET; 4759892Sjasone 4859892Sjasone set = malloc(sizeof(gss_OID_set_desc), M_GSSAPI, M_WAITOK); 4959892Sjasone 5059892Sjasone set->count = 0; 5159892Sjasone set->elements = 0; 5259892Sjasone *oid_set = set; 5359892Sjasone 5459892Sjasone return (GSS_S_COMPLETE); 5559892Sjasone} 5659892Sjasone