/src/samba/third_party/heimdal/lib/krb5/codec.c
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 1998 - 2001 Kungliga Tekniska Högskolan |
3 | | * (Royal Institute of Technology, Stockholm, Sweden). |
4 | | * All rights reserved. |
5 | | * |
6 | | * Redistribution and use in source and binary forms, with or without |
7 | | * modification, are permitted provided that the following conditions |
8 | | * are met: |
9 | | * |
10 | | * 1. Redistributions of source code must retain the above copyright |
11 | | * notice, this list of conditions and the following disclaimer. |
12 | | * |
13 | | * 2. Redistributions in binary form must reproduce the above copyright |
14 | | * notice, this list of conditions and the following disclaimer in the |
15 | | * documentation and/or other materials provided with the distribution. |
16 | | * |
17 | | * 3. Neither the name of the Institute nor the names of its contributors |
18 | | * may be used to endorse or promote products derived from this software |
19 | | * without specific prior written permission. |
20 | | * |
21 | | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND |
22 | | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
24 | | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE |
25 | | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
26 | | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
27 | | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
29 | | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
30 | | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 | | * SUCH DAMAGE. |
32 | | */ |
33 | | |
34 | | #include "krb5_locl.h" |
35 | | |
36 | | #ifndef HEIMDAL_SMALLER |
37 | | |
38 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
39 | | krb5_decode_EncTicketPart (krb5_context context, |
40 | | const void *data, |
41 | | size_t length, |
42 | | EncTicketPart *t, |
43 | | size_t *len) |
44 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
45 | 0 | { |
46 | 0 | return decode_EncTicketPart(data, length, t, len); |
47 | 0 | } |
48 | | |
49 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
50 | | krb5_encode_EncTicketPart (krb5_context context, |
51 | | void *data, |
52 | | size_t length, |
53 | | EncTicketPart *t, |
54 | | size_t *len) |
55 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
56 | 0 | { |
57 | 0 | return encode_EncTicketPart(data, length, t, len); |
58 | 0 | } |
59 | | |
60 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
61 | | krb5_decode_EncASRepPart (krb5_context context, |
62 | | const void *data, |
63 | | size_t length, |
64 | | EncASRepPart *t, |
65 | | size_t *len) |
66 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
67 | 0 | { |
68 | 0 | return decode_EncASRepPart(data, length, t, len); |
69 | 0 | } |
70 | | |
71 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
72 | | krb5_encode_EncASRepPart (krb5_context context, |
73 | | void *data, |
74 | | size_t length, |
75 | | EncASRepPart *t, |
76 | | size_t *len) |
77 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
78 | 0 | { |
79 | 0 | return encode_EncASRepPart(data, length, t, len); |
80 | 0 | } |
81 | | |
82 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
83 | | krb5_decode_EncTGSRepPart (krb5_context context, |
84 | | const void *data, |
85 | | size_t length, |
86 | | EncTGSRepPart *t, |
87 | | size_t *len) |
88 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
89 | 0 | { |
90 | 0 | return decode_EncTGSRepPart(data, length, t, len); |
91 | 0 | } |
92 | | |
93 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
94 | | krb5_encode_EncTGSRepPart (krb5_context context, |
95 | | void *data, |
96 | | size_t length, |
97 | | EncTGSRepPart *t, |
98 | | size_t *len) |
99 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
100 | 0 | { |
101 | 0 | return encode_EncTGSRepPart(data, length, t, len); |
102 | 0 | } |
103 | | |
104 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
105 | | krb5_decode_EncAPRepPart (krb5_context context, |
106 | | const void *data, |
107 | | size_t length, |
108 | | EncAPRepPart *t, |
109 | | size_t *len) |
110 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
111 | 0 | { |
112 | 0 | return decode_EncAPRepPart(data, length, t, len); |
113 | 0 | } |
114 | | |
115 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
116 | | krb5_encode_EncAPRepPart (krb5_context context, |
117 | | void *data, |
118 | | size_t length, |
119 | | EncAPRepPart *t, |
120 | | size_t *len) |
121 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
122 | 0 | { |
123 | 0 | return encode_EncAPRepPart(data, length, t, len); |
124 | 0 | } |
125 | | |
126 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
127 | | krb5_decode_Authenticator (krb5_context context, |
128 | | const void *data, |
129 | | size_t length, |
130 | | Authenticator *t, |
131 | | size_t *len) |
132 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
133 | 0 | { |
134 | 0 | return decode_Authenticator(data, length, t, len); |
135 | 0 | } |
136 | | |
137 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
138 | | krb5_encode_Authenticator (krb5_context context, |
139 | | void *data, |
140 | | size_t length, |
141 | | Authenticator *t, |
142 | | size_t *len) |
143 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
144 | 0 | { |
145 | 0 | return encode_Authenticator(data, length, t, len); |
146 | 0 | } |
147 | | |
148 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
149 | | krb5_decode_EncKrbCredPart (krb5_context context, |
150 | | const void *data, |
151 | | size_t length, |
152 | | EncKrbCredPart *t, |
153 | | size_t *len) |
154 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
155 | 0 | { |
156 | 0 | return decode_EncKrbCredPart(data, length, t, len); |
157 | 0 | } |
158 | | |
159 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
160 | | krb5_encode_EncKrbCredPart (krb5_context context, |
161 | | void *data, |
162 | | size_t length, |
163 | | EncKrbCredPart *t, |
164 | | size_t *len) |
165 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
166 | 0 | { |
167 | 0 | return encode_EncKrbCredPart (data, length, t, len); |
168 | 0 | } |
169 | | |
170 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
171 | | krb5_decode_ETYPE_INFO (krb5_context context, |
172 | | const void *data, |
173 | | size_t length, |
174 | | ETYPE_INFO *t, |
175 | | size_t *len) |
176 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
177 | 0 | { |
178 | 0 | return decode_ETYPE_INFO(data, length, t, len); |
179 | 0 | } |
180 | | |
181 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
182 | | krb5_encode_ETYPE_INFO (krb5_context context, |
183 | | void *data, |
184 | | size_t length, |
185 | | ETYPE_INFO *t, |
186 | | size_t *len) |
187 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
188 | 0 | { |
189 | 0 | return encode_ETYPE_INFO (data, length, t, len); |
190 | 0 | } |
191 | | |
192 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
193 | | krb5_decode_ETYPE_INFO2 (krb5_context context, |
194 | | const void *data, |
195 | | size_t length, |
196 | | ETYPE_INFO2 *t, |
197 | | size_t *len) |
198 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
199 | 0 | { |
200 | 0 | return decode_ETYPE_INFO2(data, length, t, len); |
201 | 0 | } |
202 | | |
203 | | KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
204 | | krb5_encode_ETYPE_INFO2 (krb5_context context, |
205 | | void *data, |
206 | | size_t length, |
207 | | ETYPE_INFO2 *t, |
208 | | size_t *len) |
209 | | KRB5_DEPRECATED_FUNCTION("Use X instead") |
210 | 0 | { |
211 | 0 | return encode_ETYPE_INFO2 (data, length, t, len); |
212 | 0 | } |
213 | | |
214 | | #endif /* HEIMDAL_SMALLER */ |