/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* glue routine gss_import_name
*
*/
#include "mechglueP.h"
const gss_buffer_t input_name_buffer,
const gss_OID input_name_type,
{
if (minor_status)
*minor_status = 0;
/* if output_name is NULL, simply return */
if (output_name == NULL)
return (GSS_S_COMPLETE);
*output_name = 0;
return (GSS_S_BAD_NAME);
/*
* First create the union name struct that will hold the external
* name and the name type.
*/
if (!union_name) {
*minor_status = ENOMEM;
goto allocation_failure;
}
union_name->mech_type = 0;
union_name->mech_name = 0;
union_name->name_type = 0;
union_name->external_name = 0;
/*
* All we do here is record the external name and name_type.
* When the name is actually used, the underlying gss_import_name()
* is called for the appropriate mechanism.
* Since the name type may be a constant or comming from the
* rpc resoults, we must make a copy.
*/
if (!union_name->external_name) {
*minor_status = ENOMEM;
goto allocation_failure;
}
*minor_status = ENOMEM;
goto allocation_failure;
}
/*
* making a copy of the name_type structure and elements
* we now delete it when calling gss_release_name
*/
if (!union_name->name_type) {
*minor_status = ENOMEM;
goto allocation_failure;
}
*minor_status = ENOMEM;
goto allocation_failure;
}
return (GSS_S_COMPLETE);
if (union_name) {
if (union_name->external_name) {
sizeof (gss_buffer_desc));
}
if (union_name->name_type) {
}
}
return (major_status);
}