xref: /netbsd-src/crypto/external/bsd/heimdal/dist/lib/base/null.c (revision d3273b5b76f5afaafe308cead5511dbb8df8c5e9)
1*d3273b5bSchristos /*	$NetBSD: null.c,v 1.2 2017/01/28 21:31:45 christos Exp $	*/
2b9d004c6Schristos 
3b9d004c6Schristos /*
4b9d004c6Schristos  * Copyright (c) 2010 Kungliga Tekniska Högskolan
5b9d004c6Schristos  * (Royal Institute of Technology, Stockholm, Sweden).
6b9d004c6Schristos  * All rights reserved.
7b9d004c6Schristos  *
8b9d004c6Schristos  * Portions Copyright (c) 2010 Apple Inc. All rights reserved.
9b9d004c6Schristos  *
10b9d004c6Schristos  * Redistribution and use in source and binary forms, with or without
11b9d004c6Schristos  * modification, are permitted provided that the following conditions
12b9d004c6Schristos  * are met:
13b9d004c6Schristos  *
14b9d004c6Schristos  * 1. Redistributions of source code must retain the above copyright
15b9d004c6Schristos  *    notice, this list of conditions and the following disclaimer.
16b9d004c6Schristos  *
17b9d004c6Schristos  * 2. Redistributions in binary form must reproduce the above copyright
18b9d004c6Schristos  *    notice, this list of conditions and the following disclaimer in the
19b9d004c6Schristos  *    documentation and/or other materials provided with the distribution.
20b9d004c6Schristos  *
21b9d004c6Schristos  * 3. Neither the name of the Institute nor the names of its contributors
22b9d004c6Schristos  *    may be used to endorse or promote products derived from this software
23b9d004c6Schristos  *    without specific prior written permission.
24b9d004c6Schristos  *
25b9d004c6Schristos  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
26b9d004c6Schristos  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27b9d004c6Schristos  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28b9d004c6Schristos  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
29b9d004c6Schristos  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30b9d004c6Schristos  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31b9d004c6Schristos  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32b9d004c6Schristos  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33b9d004c6Schristos  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34b9d004c6Schristos  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35b9d004c6Schristos  * SUCH DAMAGE.
36b9d004c6Schristos  */
37b9d004c6Schristos 
38b9d004c6Schristos #include "baselocl.h"
39b9d004c6Schristos 
40b9d004c6Schristos struct heim_type_data _heim_null_object = {
41b9d004c6Schristos     HEIM_TID_NULL,
42b9d004c6Schristos     "null-object",
43b9d004c6Schristos     NULL,
44b9d004c6Schristos     NULL,
45b9d004c6Schristos     NULL,
46b9d004c6Schristos     NULL,
47b9d004c6Schristos     NULL,
48b9d004c6Schristos     NULL
49b9d004c6Schristos };
50b9d004c6Schristos 
51b9d004c6Schristos heim_null_t
heim_null_create(void)52b9d004c6Schristos heim_null_create(void)
53b9d004c6Schristos {
54b9d004c6Schristos     return heim_base_make_tagged_object(0, HEIM_TID_NULL);
55b9d004c6Schristos }
56