10Sstevel@tonic-gate /*
20Sstevel@tonic-gate * Copyright 1993 by OpenVision Technologies, Inc.
30Sstevel@tonic-gate *
40Sstevel@tonic-gate * Permission to use, copy, modify, distribute, and sell this software
50Sstevel@tonic-gate * and its documentation for any purpose is hereby granted without fee,
60Sstevel@tonic-gate * provided that the above copyright notice appears in all copies and
70Sstevel@tonic-gate * that both that copyright notice and this permission notice appear in
80Sstevel@tonic-gate * supporting documentation, and that the name of OpenVision not be used
90Sstevel@tonic-gate * in advertising or publicity pertaining to distribution of the software
100Sstevel@tonic-gate * without specific, written prior permission. OpenVision makes no
110Sstevel@tonic-gate * representations about the suitability of this software for any
120Sstevel@tonic-gate * purpose. It is provided "as is" without express or implied warranty.
130Sstevel@tonic-gate *
140Sstevel@tonic-gate * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
150Sstevel@tonic-gate * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
160Sstevel@tonic-gate * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
170Sstevel@tonic-gate * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
180Sstevel@tonic-gate * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
190Sstevel@tonic-gate * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
200Sstevel@tonic-gate * PERFORMANCE OF THIS SOFTWARE.
210Sstevel@tonic-gate */
220Sstevel@tonic-gate
230Sstevel@tonic-gate /*
24*7934SMark.Phalan@Sun.COM * $Id: indicate_mechs.c 18330 2006-07-17 16:39:35Z tlyu $
250Sstevel@tonic-gate */
260Sstevel@tonic-gate
275053Sgtb #include "gssapiP_krb5.h"
285053Sgtb #include "mglueP.h"
290Sstevel@tonic-gate
300Sstevel@tonic-gate OM_uint32
krb5_gss_indicate_mechs(minor_status,mech_set)315053Sgtb krb5_gss_indicate_mechs(minor_status, mech_set)
320Sstevel@tonic-gate OM_uint32 *minor_status;
330Sstevel@tonic-gate gss_OID_set *mech_set;
340Sstevel@tonic-gate {
350Sstevel@tonic-gate *minor_status = 0;
360Sstevel@tonic-gate
375053Sgtb if (! gssint_copy_oid_set(minor_status, gss_mech_set_krb5_both, mech_set)) {
380Sstevel@tonic-gate *mech_set = GSS_C_NO_OID_SET;
395053Sgtb *minor_status = ENOMEM;
400Sstevel@tonic-gate return(GSS_S_FAILURE);
410Sstevel@tonic-gate }
420Sstevel@tonic-gate
430Sstevel@tonic-gate return(GSS_S_COMPLETE);
440Sstevel@tonic-gate }
45