Fix Windows build: no fork for kdc
[heimdal.git] / lib / krb5 / codec.c
blob5e754c60cba7d002d75bb04f10e804c984d432be
1 /*
2 * Copyright (c) 1998 - 2001 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
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.
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.
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.
34 #include "krb5_locl.h"
36 #ifndef HEIMDAL_SMALLER
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")
46 return decode_EncTicketPart(data, length, t, len);
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")
57 return encode_EncTicketPart(data, length, t, len);
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")
68 return decode_EncASRepPart(data, length, t, len);
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")
79 return encode_EncASRepPart(data, length, t, len);
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")
90 return decode_EncTGSRepPart(data, length, t, len);
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")
101 return encode_EncTGSRepPart(data, length, t, len);
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")
112 return decode_EncAPRepPart(data, length, t, len);
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")
123 return encode_EncAPRepPart(data, length, t, len);
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")
134 return decode_Authenticator(data, length, t, len);
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")
145 return encode_Authenticator(data, length, t, len);
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")
156 return decode_EncKrbCredPart(data, length, t, len);
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")
167 return encode_EncKrbCredPart (data, length, t, len);
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")
178 return decode_ETYPE_INFO(data, length, t, len);
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")
189 return encode_ETYPE_INFO (data, length, t, len);
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")
200 return decode_ETYPE_INFO2(data, length, t, len);
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")
211 return encode_ETYPE_INFO2 (data, length, t, len);
214 #endif /* HEIMDAL_SMALLER */