etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / dist / lib / krb5 / codec.c
blobd2aaef50d310ba0c7707d03a2baf2197b4255dc1
1 /* $NetBSD: codec.c,v 1.1.1.2 2014/04/24 12:45:49 pettai Exp $ */
3 /*
4 * Copyright (c) 1998 - 2001 Kungliga Tekniska Högskolan
5 * (Royal Institute of Technology, Stockholm, Sweden).
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of the Institute nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
36 #include "krb5_locl.h"
38 #ifndef HEIMDAL_SMALLER
40 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
48 return decode_EncTicketPart(data, length, t, len);
51 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
52 krb5_encode_EncTicketPart (krb5_context context,
53 void *data,
54 size_t length,
55 EncTicketPart *t,
56 size_t *len)
57 KRB5_DEPRECATED_FUNCTION("Use X instead")
59 return encode_EncTicketPart(data, length, t, len);
62 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
70 return decode_EncASRepPart(data, length, t, len);
73 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
74 krb5_encode_EncASRepPart (krb5_context context,
75 void *data,
76 size_t length,
77 EncASRepPart *t,
78 size_t *len)
79 KRB5_DEPRECATED_FUNCTION("Use X instead")
81 return encode_EncASRepPart(data, length, t, len);
84 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
92 return decode_EncTGSRepPart(data, length, t, len);
95 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
96 krb5_encode_EncTGSRepPart (krb5_context context,
97 void *data,
98 size_t length,
99 EncTGSRepPart *t,
100 size_t *len)
101 KRB5_DEPRECATED_FUNCTION("Use X instead")
103 return encode_EncTGSRepPart(data, length, t, len);
106 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
114 return decode_EncAPRepPart(data, length, t, len);
117 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
118 krb5_encode_EncAPRepPart (krb5_context context,
119 void *data,
120 size_t length,
121 EncAPRepPart *t,
122 size_t *len)
123 KRB5_DEPRECATED_FUNCTION("Use X instead")
125 return encode_EncAPRepPart(data, length, t, len);
128 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
136 return decode_Authenticator(data, length, t, len);
139 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
140 krb5_encode_Authenticator (krb5_context context,
141 void *data,
142 size_t length,
143 Authenticator *t,
144 size_t *len)
145 KRB5_DEPRECATED_FUNCTION("Use X instead")
147 return encode_Authenticator(data, length, t, len);
150 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
158 return decode_EncKrbCredPart(data, length, t, len);
161 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
162 krb5_encode_EncKrbCredPart (krb5_context context,
163 void *data,
164 size_t length,
165 EncKrbCredPart *t,
166 size_t *len)
167 KRB5_DEPRECATED_FUNCTION("Use X instead")
169 return encode_EncKrbCredPart (data, length, t, len);
172 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
180 return decode_ETYPE_INFO(data, length, t, len);
183 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
191 return encode_ETYPE_INFO (data, length, t, len);
194 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
202 return decode_ETYPE_INFO2(data, length, t, len);
205 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
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_FUNCTION("Use X instead")
213 return encode_ETYPE_INFO2 (data, length, t, len);
216 #endif /* HEIMDAL_SMALLER */