xref: /freebsd/crypto/heimdal/lib/krb5/codec.c (revision 0a36787e4c1fa0cf77dcf83be0867178476e372b)
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 {
46     return decode_EncTicketPart(data, length, t, len);
47 }
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 {
57     return encode_EncTicketPart(data, length, t, len);
58 }
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 {
68     return decode_EncASRepPart(data, length, t, len);
69 }
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 {
79     return encode_EncASRepPart(data, length, t, len);
80 }
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 {
90     return decode_EncTGSRepPart(data, length, t, len);
91 }
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 {
101     return encode_EncTGSRepPart(data, length, t, len);
102 }
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 {
112     return decode_EncAPRepPart(data, length, t, len);
113 }
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 {
123     return encode_EncAPRepPart(data, length, t, len);
124 }
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 {
134     return decode_Authenticator(data, length, t, len);
135 }
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 {
145     return encode_Authenticator(data, length, t, len);
146 }
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 {
156     return decode_EncKrbCredPart(data, length, t, len);
157 }
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 {
167     return encode_EncKrbCredPart (data, length, t, len);
168 }
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 {
178     return decode_ETYPE_INFO(data, length, t, len);
179 }
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 {
189     return encode_ETYPE_INFO (data, length, t, len);
190 }
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 {
200     return decode_ETYPE_INFO2(data, length, t, len);
201 }
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 {
211     return encode_ETYPE_INFO2 (data, length, t, len);
212 }
213 
214 #endif /* HEIMDAL_SMALLER */
215