duplicate_name.c revision 303975
1228753Smm/*
2228753Smm * Copyright (c) 2006 Kungliga Tekniska H��gskolan
3228753Smm * (Royal Institute of Technology, Stockholm, Sweden).
4228753Smm * All rights reserved.
5228753Smm *
6228753Smm * Redistribution and use in source and binary forms, with or without
7228753Smm * modification, are permitted provided that the following conditions
8228753Smm * are met:
9228753Smm *
10228753Smm * 1. Redistributions of source code must retain the above copyright
11228753Smm *    notice, this list of conditions and the following disclaimer.
12228753Smm *
13228753Smm * 2. Redistributions in binary form must reproduce the above copyright
14228753Smm *    notice, this list of conditions and the following disclaimer in the
15228753Smm *    documentation and/or other materials provided with the distribution.
16228753Smm *
17228753Smm * 3. Neither the name of the Institute nor the names of its contributors
18228753Smm *    may be used to endorse or promote products derived from this software
19228753Smm *    without specific prior written permission.
20228753Smm *
21228753Smm * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22228753Smm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23228753Smm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24228753Smm * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25228753Smm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26228763Smm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27228753Smm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28232153Smm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29232153Smm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30228753Smm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31228753Smm * SUCH DAMAGE.
32228753Smm */
33228753Smm
34228753Smm#include "ntlm.h"
35228753Smm
36228753SmmOM_uint32 GSSAPI_CALLCONV
37228753Smm_gss_ntlm_duplicate_name (
38248616Smm            OM_uint32 * minor_status,
39228753Smm            const gss_name_t src_name,
40228753Smm            gss_name_t * dest_name
41228753Smm           )
42228753Smm{
43228753Smm    if (minor_status)
44228753Smm	*minor_status = 0;
45228753Smm    if (dest_name)
46228753Smm	*dest_name = NULL;
47228753Smm    return GSS_S_COMPLETE;
48228753Smm}
49228753Smm