g_delete_sec_context.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * CDDL HEADER START
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The contents of this file are subject to the terms of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Common Development and Distribution License, Version 1.0 only
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * (the "License"). You may not use this file except in compliance
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * See the License for the specific language governing permissions
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * If applicable, add the following below this CDDL HEADER, with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * information: Portions Copyright [yyyy] [name of copyright owner]
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * CDDL HEADER END
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright (c) 1996,1997, by Sun Microsystems, Inc.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * All rights reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#pragma ident "%Z%%M% %I% %E% SMI"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * glue routine for gss_delete_sec_context
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster /* if the context_handle is Null, return NO_CONTEXT error */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster if (context_handle == NULL || *context_handle == GSS_C_NO_CONTEXT)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster return (GSS_S_CALL_INACCESSIBLE_READ | GSS_S_NO_CONTEXT);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * select the approprate underlying mechanism routine and
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster status = mech->gss_delete_sec_context(mech->context,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster /* now free up the space for the union context structure */