1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 
3 /*
4  * Copyright 1993 by OpenVision Technologies, Inc.
5  *
6  * Permission to use, copy, modify, distribute, and sell this software
7  * and its documentation for any purpose is hereby granted without fee,
8  * provided that the above copyright notice appears in all copies and
9  * that both that copyright notice and this permission notice appear in
10  * supporting documentation, and that the name of OpenVision not be used
11  * in advertising or publicity pertaining to distribution of the software
12  * without specific, written prior permission. OpenVision makes no
13  * representations about the suitability of this software for any
14  * purpose.  It is provided "as is" without express or implied warranty.
15  *
16  * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18  * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
20  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22  * PERFORMANCE OF THIS SOFTWARE.
23  */
24 
25 /*
26  * $Id: indicate_mechs.c 18131 2006-06-14 22:27:54Z tlyu $
27  */
28 
29 #include "gssapiP_krb5.h"
30 #include "mglueP.h"
31 
32 OM_uint32
33 krb5_gss_indicate_mechs(minor_status, mech_set)
34      OM_uint32 *minor_status;
35      gss_OID_set *mech_set;
36 {
37    *minor_status = 0;
38 
39    if (! gssint_copy_oid_set(minor_status, gss_mech_set_krb5_both, mech_set)) {
40          *mech_set     = GSS_C_NO_OID_SET;
41          *minor_status = ENOMEM;
42          return(GSS_S_FAILURE);
43    }
44 
45    return(GSS_S_COMPLETE);
46 }
47