1/* $OpenLDAP$ */
2/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 *
4 * Copyright 1998-2021 The OpenLDAP Foundation.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
9 * Public License.
10 *
11 * A copy of this license is available in file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
14 */
15
16/*
17 * LBER types
18 */
19
20#ifndef _LBER_TYPES_H
21#define _LBER_TYPES_H
22
23#include <ldap_cdefs.h>
24
25LDAP_BEGIN_DECL
26
27/* LBER boolean, enum, integers (32 bits or larger) */
28#undef LBER_INT_T
29
30/* LBER tags (32 bits or larger) */
31#undef LBER_TAG_T
32
33/* LBER socket descriptor */
34#undef LBER_SOCKET_T
35
36/* LBER lengths (32 bits or larger) */
37#undef LBER_LEN_T
38
39/* ------------------------------------------------------------ */
40
41/* booleans, enumerations, and integers */
42typedef LBER_INT_T ber_int_t;
43
44/* signed and unsigned versions */
45typedef signed LBER_INT_T ber_sint_t;
46typedef unsigned LBER_INT_T ber_uint_t;
47
48/* tags */
49typedef unsigned LBER_TAG_T ber_tag_t;
50
51/* "socket" descriptors */
52typedef LBER_SOCKET_T ber_socket_t;
53
54/* lengths */
55typedef unsigned LBER_LEN_T ber_len_t;
56
57/* signed lengths */
58typedef signed LBER_LEN_T ber_slen_t;
59
60LDAP_END_DECL
61
62#endif /* _LBER_TYPES_H */
63