~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/windows/identity/kcreddb/type.h

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2005 Massachusetts Institute of Technology
3
 
 *
4
 
 * Permission is hereby granted, free of charge, to any person
5
 
 * obtaining a copy of this software and associated documentation
6
 
 * files (the "Software"), to deal in the Software without
7
 
 * restriction, including without limitation the rights to use, copy,
8
 
 * modify, merge, publish, distribute, sublicense, and/or sell copies
9
 
 * of the Software, and to permit persons to whom the Software is
10
 
 * furnished to do so, subject to the following conditions:
11
 
 *
12
 
 * The above copyright notice and this permission notice shall be
13
 
 * included in all copies or substantial portions of the Software.
14
 
 *
15
 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
 
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
 
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
 
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19
 
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20
 
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
 
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
 
 * SOFTWARE.
23
 
 */
24
 
 
25
 
/* $Id$ */
26
 
 
27
 
#ifndef __KHIMAIRA_KCDB_TYPE_H
28
 
#define __KHIMAIRA_KCDB_TYPE_H
29
 
 
30
 
/* Types */
31
 
 
32
 
typedef struct kcdb_type_i_t {
33
 
    kcdb_type type;
34
 
 
35
 
    khm_int32 refcount;
36
 
 
37
 
    struct kcdb_type_i_t * next;
38
 
    struct kcdb_type_i_t * prev;
39
 
} kcdb_type_i;
40
 
 
41
 
#define KCDB_TYPE_HASH_SIZE 31
42
 
 
43
 
#define KCDB_TYPE_FLAG_DELETED 8
44
 
 
45
 
void kcdb_type_init(void);
46
 
void kcdb_type_exit(void);
47
 
void kcdb_type_add_ref(const void *key, void *vt);
48
 
void kcdb_type_del_ref(const void *key, void *vt);
49
 
void kcdb_type_msg_completion(kmq_message * m);
50
 
khm_int32 kcdb_type_hold(kcdb_type_i * t);
51
 
khm_int32 kcdb_type_release(kcdb_type_i * t);
52
 
void kcdb_type_check_and_delete(khm_int32 id);
53
 
void kcdb_type_post_message(khm_int32 op, kcdb_type_i * t);
54
 
 
55
 
khm_int32 KHMAPI kcdb_type_void_toString(
56
 
    const void * d,
57
 
    khm_size cbd,
58
 
    wchar_t * buffer,
59
 
    khm_size * cb_buf,
60
 
    khm_int32 flags);
61
 
 
62
 
khm_boolean KHMAPI kcdb_type_void_isValid(
63
 
    const void * d,
64
 
    khm_size cbd);
65
 
 
66
 
khm_int32 KHMAPI kcdb_type_void_comp(
67
 
    const void * d1,
68
 
    khm_size cbd1,
69
 
    const void * d2,
70
 
    khm_size cbd2);
71
 
 
72
 
khm_int32 KHMAPI kcdb_type_void_dup(
73
 
    const void * d_src,
74
 
    khm_size cbd_src,
75
 
    void * d_dst,
76
 
    khm_size * cbd_dst);
77
 
 
78
 
khm_int32 KHMAPI kcdb_type_string_toString(
79
 
    const void * d,
80
 
    khm_size cbd,
81
 
    wchar_t * buffer,
82
 
    khm_size * cb_buf,
83
 
    khm_int32 flags);
84
 
 
85
 
khm_boolean KHMAPI kcdb_type_string_isValid(
86
 
    const void * d,
87
 
    khm_size cbd);
88
 
 
89
 
khm_int32 KHMAPI kcdb_type_string_comp(
90
 
    const void * d1,
91
 
    khm_size cbd1,
92
 
    const void * d2,
93
 
    khm_size cbd2);
94
 
 
95
 
khm_int32 KHMAPI kcdb_type_string_dup(
96
 
    const void * d_src,
97
 
    khm_size cbd_src,
98
 
    void * d_dst,
99
 
    khm_size * cbd_dst);
100
 
 
101
 
khm_int32 KHMAPI kcdb_type_date_toString(
102
 
    const void * d,
103
 
    khm_size cbd,
104
 
    wchar_t * buffer,
105
 
    khm_size * cb_buf,
106
 
    khm_int32 flags);
107
 
 
108
 
khm_boolean KHMAPI kcdb_type_date_isValid(
109
 
    const void * d,
110
 
    khm_size cbd);
111
 
 
112
 
khm_int32 KHMAPI kcdb_type_date_comp(
113
 
    const void * d1,
114
 
    khm_size cbd1,
115
 
    const void * d2,
116
 
    khm_size cbd2);
117
 
 
118
 
khm_int32 KHMAPI kcdb_type_date_dup(
119
 
    const void * d_src,
120
 
    khm_size cbd_src,
121
 
    void * d_dst,
122
 
    khm_size * cbd_dst);
123
 
 
124
 
khm_int32 KHMAPI kcdb_type_interval_toString(
125
 
    const void * d,
126
 
    khm_size cbd,
127
 
    wchar_t * buffer,
128
 
    khm_size * cb_buf,
129
 
    khm_int32 flags);
130
 
 
131
 
khm_boolean KHMAPI kcdb_type_interval_isValid(
132
 
    const void * d,
133
 
    khm_size cbd);
134
 
 
135
 
khm_int32 KHMAPI kcdb_type_interval_comp(
136
 
    const void * d1,
137
 
    khm_size cbd1,
138
 
    const void * d2,
139
 
    khm_size cbd2);
140
 
 
141
 
khm_int32 KHMAPI kcdb_type_interval_dup(
142
 
    const void * d_src,
143
 
    khm_size cbd_src,
144
 
    void * d_dst,
145
 
    khm_size * cbd_dst);
146
 
 
147
 
khm_int32 KHMAPI kcdb_type_int32_toString(
148
 
    const void * d,
149
 
    khm_size cbd,
150
 
    wchar_t * buffer,
151
 
    khm_size * cb_buf,
152
 
    khm_int32 flags);
153
 
 
154
 
khm_boolean KHMAPI kcdb_type_int32_isValid(
155
 
    const void * d,
156
 
    khm_size cbd);
157
 
 
158
 
khm_int32 KHMAPI kcdb_type_int32_comp(
159
 
    const void * d1,
160
 
    khm_size cbd1,
161
 
    const void * d2,
162
 
    khm_size cbd2);
163
 
 
164
 
khm_int32 KHMAPI kcdb_type_int32_dup(
165
 
    const void * d_src,
166
 
    khm_size cbd_src,
167
 
    void * d_dst,
168
 
    khm_size * cbd_dst);
169
 
 
170
 
khm_int32 KHMAPI kcdb_type_int64_toString(
171
 
    const void * d,
172
 
    khm_size cbd,
173
 
    wchar_t * buffer,
174
 
    khm_size * cb_buf,
175
 
    khm_int32 flags);
176
 
 
177
 
khm_boolean KHMAPI kcdb_type_int64_isValid(
178
 
    const void * d,
179
 
    khm_size cbd);
180
 
 
181
 
khm_int32 KHMAPI kcdb_type_int64_comp(
182
 
    const void * d1,
183
 
    khm_size cbd1,
184
 
    const void * d2,
185
 
    khm_size cbd2);
186
 
 
187
 
khm_int32 KHMAPI kcdb_type_int64_dup(
188
 
    const void * d_src,
189
 
    khm_size cbd_src,
190
 
    void * d_dst,
191
 
    khm_size * cbd_dst);
192
 
 
193
 
khm_int32 KHMAPI kcdb_type_data_toString(
194
 
    const void * d,
195
 
    khm_size cbd,
196
 
    wchar_t * buffer,
197
 
    khm_size * cb_buf,
198
 
    khm_int32 flags);
199
 
 
200
 
khm_boolean KHMAPI kcdb_type_data_isValid(
201
 
    const void * d,
202
 
    khm_size cbd);
203
 
 
204
 
khm_int32 KHMAPI kcdb_type_data_comp(
205
 
    const void * d1,
206
 
    khm_size cbd1,
207
 
    const void * d2,
208
 
    khm_size cbd2);
209
 
 
210
 
khm_int32 KHMAPI kcdb_type_data_dup(
211
 
    const void * d_src,
212
 
    khm_size cbd_src,
213
 
    void * d_dst,
214
 
    khm_size * cbd_dst);
215
 
 
216
 
#endif