turn off v4 conversion stuff
[heimdal.git] / lib / krb5 / codec.c
blobebda3e51f75f05703260797ca7d0e7662c0232a2
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 #define KRB5_DEPRECATED
36 #include "krb5_locl.h"
38 #ifndef HEIMDAL_SMALLER
40 krb5_error_code KRB5_LIB_FUNCTION
41 krb5_decode_EncTicketPart (krb5_context context,
42 const void *data,
43 size_t length,
44 EncTicketPart *t,
45 size_t *len)
46 KRB5_DEPRECATED
48 return decode_EncTicketPart(data, length, t, len);
51 krb5_error_code KRB5_LIB_FUNCTION
52 krb5_encode_EncTicketPart (krb5_context context,
53 void *data,
54 size_t length,
55 EncTicketPart *t,
56 size_t *len)
57 KRB5_DEPRECATED
59 return encode_EncTicketPart(data, length, t, len);
62 krb5_error_code KRB5_LIB_FUNCTION
63 krb5_decode_EncASRepPart (krb5_context context,
64 const void *data,
65 size_t length,
66 EncASRepPart *t,
67 size_t *len)
68 KRB5_DEPRECATED
70 return decode_EncASRepPart(data, length, t, len);
73 krb5_error_code KRB5_LIB_FUNCTION
74 krb5_encode_EncASRepPart (krb5_context context,
75 void *data,
76 size_t length,
77 EncASRepPart *t,
78 size_t *len)
79 KRB5_DEPRECATED
81 return encode_EncASRepPart(data, length, t, len);
84 krb5_error_code KRB5_LIB_FUNCTION
85 krb5_decode_EncTGSRepPart (krb5_context context,
86 const void *data,
87 size_t length,
88 EncTGSRepPart *t,
89 size_t *len)
90 KRB5_DEPRECATED
92 return decode_EncTGSRepPart(data, length, t, len);
95 krb5_error_code KRB5_LIB_FUNCTION
96 krb5_encode_EncTGSRepPart (krb5_context context,
97 void *data,
98 size_t length,
99 EncTGSRepPart *t,
100 size_t *len)
101 KRB5_DEPRECATED
103 return encode_EncTGSRepPart(data, length, t, len);
106 krb5_error_code KRB5_LIB_FUNCTION
107 krb5_decode_EncAPRepPart (krb5_context context,
108 const void *data,
109 size_t length,
110 EncAPRepPart *t,
111 size_t *len)
112 KRB5_DEPRECATED
114 return decode_EncAPRepPart(data, length, t, len);
117 krb5_error_code KRB5_LIB_FUNCTION
118 krb5_encode_EncAPRepPart (krb5_context context,
119 void *data,
120 size_t length,
121 EncAPRepPart *t,
122 size_t *len)
123 KRB5_DEPRECATED
125 return encode_EncAPRepPart(data, length, t, len);
128 krb5_error_code KRB5_LIB_FUNCTION
129 krb5_decode_Authenticator (krb5_context context,
130 const void *data,
131 size_t length,
132 Authenticator *t,
133 size_t *len)
134 KRB5_DEPRECATED
136 return decode_Authenticator(data, length, t, len);
139 krb5_error_code KRB5_LIB_FUNCTION
140 krb5_encode_Authenticator (krb5_context context,
141 void *data,
142 size_t length,
143 Authenticator *t,
144 size_t *len)
145 KRB5_DEPRECATED
147 return encode_Authenticator(data, length, t, len);
150 krb5_error_code KRB5_LIB_FUNCTION
151 krb5_decode_EncKrbCredPart (krb5_context context,
152 const void *data,
153 size_t length,
154 EncKrbCredPart *t,
155 size_t *len)
156 KRB5_DEPRECATED
158 return decode_EncKrbCredPart(data, length, t, len);
161 krb5_error_code KRB5_LIB_FUNCTION
162 krb5_encode_EncKrbCredPart (krb5_context context,
163 void *data,
164 size_t length,
165 EncKrbCredPart *t,
166 size_t *len)
167 KRB5_DEPRECATED
169 return encode_EncKrbCredPart (data, length, t, len);
172 krb5_error_code KRB5_LIB_FUNCTION
173 krb5_decode_ETYPE_INFO (krb5_context context,
174 const void *data,
175 size_t length,
176 ETYPE_INFO *t,
177 size_t *len)
178 KRB5_DEPRECATED
180 return decode_ETYPE_INFO(data, length, t, len);
183 krb5_error_code KRB5_LIB_FUNCTION
184 krb5_encode_ETYPE_INFO (krb5_context context,
185 void *data,
186 size_t length,
187 ETYPE_INFO *t,
188 size_t *len)
189 KRB5_DEPRECATED
191 return encode_ETYPE_INFO (data, length, t, len);
194 krb5_error_code KRB5_LIB_FUNCTION
195 krb5_decode_ETYPE_INFO2 (krb5_context context,
196 const void *data,
197 size_t length,
198 ETYPE_INFO2 *t,
199 size_t *len)
200 KRB5_DEPRECATED
202 return decode_ETYPE_INFO2(data, length, t, len);
205 krb5_error_code KRB5_LIB_FUNCTION
206 krb5_encode_ETYPE_INFO2 (krb5_context context,
207 void *data,
208 size_t length,
209 ETYPE_INFO2 *t,
210 size_t *len)
211 KRB5_DEPRECATED
213 return encode_ETYPE_INFO2 (data, length, t, len);
216 #endif /* HEIMDAL_SMALLER */