xref: /titanic_44/usr/src/lib/libgss/g_oid_ops.c (revision b65731f1f612238279eb4d997f43589b535c5646)
1 /*
2  * Copyright (c) 1996,1997, by Sun Microsystems, Inc.
3  * All rights reserved.
4  */
5 #pragma ident	"%Z%%M%	%I%	%E% SMI"
6 /*
7  * lib/gssapi/mechglue/g_oid_ops.c
8  *
9  * Copyright 1995 by the Massachusetts Institute of Technology.
10  * All Rights Reserved.
11  *
12  * Export of this software from the United States of America may
13  *   require a specific license from the United States Government.
14  *   It is the responsibility of any person or organization contemplating
15  *   export to obtain such a license before exporting.
16  *
17  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
18  * distribute this software and its documentation for any purpose and
19  * without fee is hereby granted, provided that the above copyright
20  * notice appear in all copies and that both that copyright notice and
21  * this permission notice appear in supporting documentation, and that
22  * the name of M.I.T. not be used in advertising or publicity pertaining
23  * to distribution of the software without specific, written prior
24  * permission.  M.I.T. makes no representations about the suitability of
25  * this software for any purpose.  It is provided "as is" without express
26  * or implied warranty.
27  *
28  */
29 
30 /*
31  * oid_ops.c - GSS-API V2 interfaces to manipulate OIDs
32  */
33 
34 #include <mechglueP.h>
35 
36 /*
37  * gss_release_oid has been moved to g_initialize, becasue it requires access
38  * to the mechanism list.  All functions requiring direct access to the
39  * mechanism list are now in g_initialize.c
40  */
41 
42 OM_uint32
43 gss_create_empty_oid_set(minor_status, oid_set)
44 	OM_uint32		*minor_status;
45 	gss_OID_set		*oid_set;
46 {
47 		return (generic_gss_create_empty_oid_set(minor_status,
48 				oid_set));
49 }
50 
51 OM_uint32
52 gss_add_oid_set_member(minor_status, member_oid, oid_set)
53 	OM_uint32		*minor_status;
54 	const gss_OID		member_oid;
55 	gss_OID_set		*oid_set;
56 {
57 	return (generic_gss_add_oid_set_member(minor_status, member_oid,
58 				oid_set));
59 }
60 
61 OM_uint32
62 gss_test_oid_set_member(minor_status, member, set, present)
63 	OM_uint32		*minor_status;
64 	const gss_OID		member;
65 	const gss_OID_set	set;
66 	int			*present;
67 {
68 	return (generic_gss_test_oid_set_member(minor_status, member, set,
69 				present));
70 }
71 
72 OM_uint32
73 gss_oid_to_str(minor_status, oid, oid_str)
74 	OM_uint32		*minor_status;
75 	const gss_OID		oid;
76 	gss_buffer_t		oid_str;
77 {
78 	return (generic_gss_oid_to_str(minor_status, oid, oid_str));
79 }
80 
81 OM_uint32
82 gss_str_to_oid(minor_status, oid_str, oid)
83 	OM_uint32		*minor_status;
84 	const gss_buffer_t	oid_str;
85 	gss_OID			*oid;
86 {
87 	return (generic_gss_str_to_oid(minor_status, oid_str, oid));
88 }
89