1 /* $NetBSD: codec.c,v 1.1.1.2 2014/04/24 12:45:49 pettai Exp $ */
4 * Copyright (c) 1998 - 2001 Kungliga Tekniska Högskolan
5 * (Royal Institute of Technology, Stockholm, Sweden).
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
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
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
211 KRB5_DEPRECATED_FUNCTION("Use X instead")
213 return encode_ETYPE_INFO2 (data
, length
, t
, len
);
216 #endif /* HEIMDAL_SMALLER */