xref: /illumos-gate/usr/src/lib/libgss/g_buffer_set.c (revision ba7b222e)
1*ba7b222eSGlenn Barry /*
2*ba7b222eSGlenn Barry  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3*ba7b222eSGlenn Barry  * Use is subject to license terms.
4*ba7b222eSGlenn Barry  */
5*ba7b222eSGlenn Barry 
6*ba7b222eSGlenn Barry /*
7*ba7b222eSGlenn Barry  * Copyright 2008 by the Massachusetts Institute of Technology.
8*ba7b222eSGlenn Barry  * All Rights Reserved.
9*ba7b222eSGlenn Barry  *
10*ba7b222eSGlenn Barry  * Export of this software from the United States of America may
11*ba7b222eSGlenn Barry  *   require a specific license from the United States Government.
12*ba7b222eSGlenn Barry  *   It is the responsibility of any person or organization contemplating
13*ba7b222eSGlenn Barry  *   export to obtain such a license before exporting.
14*ba7b222eSGlenn Barry  *
15*ba7b222eSGlenn Barry  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
16*ba7b222eSGlenn Barry  * distribute this software and its documentation for any purpose and
17*ba7b222eSGlenn Barry  * without fee is hereby granted, provided that the above copyright
18*ba7b222eSGlenn Barry  * notice appear in all copies and that both that copyright notice and
19*ba7b222eSGlenn Barry  * this permission notice appear in supporting documentation, and that
20*ba7b222eSGlenn Barry  * the name of M.I.T. not be used in advertising or publicity pertaining
21*ba7b222eSGlenn Barry  * to distribution of the software without specific, written prior
22*ba7b222eSGlenn Barry  * permission.  Furthermore if you modify this software you must label
23*ba7b222eSGlenn Barry  * your software as modified software and not distribute it in such a
24*ba7b222eSGlenn Barry  * fashion that it might be confused with the original M.I.T. software.
25*ba7b222eSGlenn Barry  * M.I.T. makes no representations about the suitability of
26*ba7b222eSGlenn Barry  * this software for any purpose.  It is provided "as is" without express
27*ba7b222eSGlenn Barry  * or implied warranty.
28*ba7b222eSGlenn Barry  *
29*ba7b222eSGlenn Barry  */
30*ba7b222eSGlenn Barry 
31*ba7b222eSGlenn Barry #include "mglueP.h"
32*ba7b222eSGlenn Barry #include <stdio.h>
33*ba7b222eSGlenn Barry #ifdef HAVE_STDLIB_H
34*ba7b222eSGlenn Barry #include <stdlib.h>
35*ba7b222eSGlenn Barry #endif
36*ba7b222eSGlenn Barry #include <string.h>
37*ba7b222eSGlenn Barry #include <errno.h>
38*ba7b222eSGlenn Barry 
gss_create_empty_buffer_set(OM_uint32 * minor_status,gss_buffer_set_t * buffer_set)39*ba7b222eSGlenn Barry OM_uint32  gss_create_empty_buffer_set
40*ba7b222eSGlenn Barry 	   (OM_uint32 * minor_status,
41*ba7b222eSGlenn Barry 	    gss_buffer_set_t *buffer_set)
42*ba7b222eSGlenn Barry {
43*ba7b222eSGlenn Barry     return generic_gss_create_empty_buffer_set(minor_status, buffer_set);
44*ba7b222eSGlenn Barry }
45*ba7b222eSGlenn Barry 
gss_add_buffer_set_member(OM_uint32 * minor_status,const gss_buffer_t member_buffer,gss_buffer_set_t * buffer_set)46*ba7b222eSGlenn Barry OM_uint32  gss_add_buffer_set_member
47*ba7b222eSGlenn Barry 	   (OM_uint32 * minor_status,
48*ba7b222eSGlenn Barry 	    const gss_buffer_t member_buffer,
49*ba7b222eSGlenn Barry 	    gss_buffer_set_t *buffer_set)
50*ba7b222eSGlenn Barry {
51*ba7b222eSGlenn Barry     return generic_gss_add_buffer_set_member(minor_status,
52*ba7b222eSGlenn Barry 					     member_buffer,
53*ba7b222eSGlenn Barry 					     buffer_set);
54*ba7b222eSGlenn Barry }
55*ba7b222eSGlenn Barry 
gss_release_buffer_set(OM_uint32 * minor_status,gss_buffer_set_t * buffer_set)56*ba7b222eSGlenn Barry OM_uint32  gss_release_buffer_set
57*ba7b222eSGlenn Barry 	   (OM_uint32 * minor_status,
58*ba7b222eSGlenn Barry 	    gss_buffer_set_t *buffer_set)
59*ba7b222eSGlenn Barry {
60*ba7b222eSGlenn Barry     return generic_gss_release_buffer_set(minor_status, buffer_set);
61*ba7b222eSGlenn Barry }
62*ba7b222eSGlenn Barry 
63