111500Sdfuchs/*
211500Sdfuchs * Copyright (c) 1997, 1999, 2003 Kungliga Tekniska H�gskolan
311500Sdfuchs * (Royal Institute of Technology, Stockholm, Sweden).
411500Sdfuchs * All rights reserved.
511500Sdfuchs *
611500Sdfuchs * Redistribution and use in source and binary forms, with or without
711500Sdfuchs * modification, are permitted provided that the following conditions
811500Sdfuchs * are met:
911500Sdfuchs *
1011500Sdfuchs * 1. Redistributions of source code must retain the above copyright
1111500Sdfuchs *    notice, this list of conditions and the following disclaimer.
1211500Sdfuchs *
1311500Sdfuchs * 2. Redistributions in binary form must reproduce the above copyright
1411500Sdfuchs *    notice, this list of conditions and the following disclaimer in the
1511500Sdfuchs *    documentation and/or other materials provided with the distribution.
1611500Sdfuchs *
1711500Sdfuchs * 3. Neither the name of the Institute nor the names of its contributors
1811500Sdfuchs *    may be used to endorse or promote products derived from this software
1911500Sdfuchs *    without specific prior written permission.
2011500Sdfuchs *
2111500Sdfuchs * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
2211500Sdfuchs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2311500Sdfuchs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2411500Sdfuchs * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
2511500Sdfuchs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2611500Sdfuchs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2711500Sdfuchs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2811500Sdfuchs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2911500Sdfuchs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3011500Sdfuchs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3111500Sdfuchs * SUCH DAMAGE.
3211500Sdfuchs */
3311500Sdfuchs
3411500Sdfuchs#include "ntlm/ntlm.h"
3511500Sdfuchs
3611500SdfuchsRCSID("$Id: export_name.c 19334 2006-12-14 12:17:34Z lha $");
3711500Sdfuchs
3811500SdfuchsOM_uint32 _gss_ntlm_export_name
3911500Sdfuchs           (OM_uint32  * minor_status,
4011500Sdfuchs            const gss_name_t input_name,
4111500Sdfuchs            gss_buffer_t exported_name
4211500Sdfuchs           )
4311500Sdfuchs{
4411500Sdfuchs    if (minor_status)
4511500Sdfuchs	*minor_status = 0;
4611500Sdfuchs    if (exported_name) {
4711500Sdfuchs	exported_name->length = 0;
4811500Sdfuchs	exported_name->value = NULL;
4911500Sdfuchs    }
5011500Sdfuchs    return GSS_S_COMPLETE;
5111500Sdfuchs}
5211500Sdfuchs