codec.c revision 233294
122347Spst/* 222347Spst * Copyright (c) 1998 - 2001 Kungliga Tekniska H��gskolan 322347Spst * (Royal Institute of Technology, Stockholm, Sweden). 492906Smarkm * All rights reserved. 522347Spst * 622347Spst * Redistribution and use in source and binary forms, with or without 722347Spst * modification, are permitted provided that the following conditions 822347Spst * are met: 922347Spst * 1022347Spst * 1. Redistributions of source code must retain the above copyright 1122347Spst * notice, this list of conditions and the following disclaimer. 1222347Spst * 1322347Spst * 2. Redistributions in binary form must reproduce the above copyright 1422347Spst * notice, this list of conditions and the following disclaimer in the 1529964Sache * documentation and/or other materials provided with the distribution. 1629964Sache * 1722347Spst * 3. Neither the name of the Institute nor the names of its contributors 1829964Sache * may be used to endorse or promote products derived from this software 1929964Sache * without specific prior written permission. 2029964Sache * 2129964Sache * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 2229964Sache * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2329964Sache * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2429964Sache * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 2529964Sache * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2629964Sache * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2729964Sache * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2829964Sache * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2929964Sache * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3029964Sache * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3129964Sache * SUCH DAMAGE. 3229964Sache */ 3322347Spst 3429964Sache#include "krb5_locl.h" 3529964Sache 3629964Sache#ifndef HEIMDAL_SMALLER 3729964Sache 3892906SmarkmKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 3992906Smarkmkrb5_decode_EncTicketPart (krb5_context context, 4022347Spst const void *data, 4122347Spst size_t length, 4222347Spst EncTicketPart *t, 4322347Spst size_t *len) 4422347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 4522347Spst{ 4622347Spst return decode_EncTicketPart(data, length, t, len); 4722347Spst} 4822347Spst 4922347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 5022347Spstkrb5_encode_EncTicketPart (krb5_context context, 5122347Spst void *data, 5222347Spst size_t length, 5322347Spst EncTicketPart *t, 5422347Spst size_t *len) 5522347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 5622347Spst{ 5722347Spst return encode_EncTicketPart(data, length, t, len); 5822347Spst} 5922347Spst 6022347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 6122347Spstkrb5_decode_EncASRepPart (krb5_context context, 6222347Spst const void *data, 6322347Spst size_t length, 6422347Spst EncASRepPart *t, 6522347Spst size_t *len) 6622347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 6722347Spst{ 6822347Spst return decode_EncASRepPart(data, length, t, len); 6922347Spst} 7022347Spst 7122347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 7222347Spstkrb5_encode_EncASRepPart (krb5_context context, 7322347Spst void *data, 7422347Spst size_t length, 7522347Spst EncASRepPart *t, 7622347Spst size_t *len) 7722347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 7892906Smarkm{ 7929964Sache return encode_EncASRepPart(data, length, t, len); 8029964Sache} 8122347Spst 8222347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 8322347Spstkrb5_decode_EncTGSRepPart (krb5_context context, 8422347Spst const void *data, 8522347Spst size_t length, 8622347Spst EncTGSRepPart *t, 8722347Spst size_t *len) 8822347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 8922347Spst{ 9022347Spst return decode_EncTGSRepPart(data, length, t, len); 9122347Spst} 9222347Spst 9322347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 9422347Spstkrb5_encode_EncTGSRepPart (krb5_context context, 9522347Spst void *data, 9622347Spst size_t length, 9722347Spst EncTGSRepPart *t, 9822347Spst size_t *len) 9922347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 10022347Spst{ 10122347Spst return encode_EncTGSRepPart(data, length, t, len); 10222347Spst} 10322347Spst 10422347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 10522347Spstkrb5_decode_EncAPRepPart (krb5_context context, 10622347Spst const void *data, 10722347Spst size_t length, 10822347Spst EncAPRepPart *t, 10922347Spst size_t *len) 11022347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 11122347Spst{ 11222347Spst return decode_EncAPRepPart(data, length, t, len); 11322347Spst} 11422347Spst 11522347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 11622347Spstkrb5_encode_EncAPRepPart (krb5_context context, 11722347Spst void *data, 11822347Spst size_t length, 11922347Spst EncAPRepPart *t, 12022347Spst size_t *len) 12122347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 12222347Spst{ 12322347Spst return encode_EncAPRepPart(data, length, t, len); 12422347Spst} 12522347Spst 12622347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 12722347Spstkrb5_decode_Authenticator (krb5_context context, 12822347Spst const void *data, 12922347Spst size_t length, 13022347Spst Authenticator *t, 13122347Spst size_t *len) 13222347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 13322347Spst{ 13422347Spst return decode_Authenticator(data, length, t, len); 13522347Spst} 13622347Spst 13722347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 13822347Spstkrb5_encode_Authenticator (krb5_context context, 13922347Spst void *data, 14022347Spst size_t length, 14122347Spst Authenticator *t, 14222347Spst size_t *len) 14322347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 14422347Spst{ 14522347Spst return encode_Authenticator(data, length, t, len); 14622347Spst} 14722347Spst 14822347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 14922347Spstkrb5_decode_EncKrbCredPart (krb5_context context, 15022347Spst const void *data, 15122347Spst size_t length, 15222347Spst EncKrbCredPart *t, 15322347Spst size_t *len) 15422347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 15522347Spst{ 15622347Spst return decode_EncKrbCredPart(data, length, t, len); 15722347Spst} 15822347Spst 15922347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 16022347Spstkrb5_encode_EncKrbCredPart (krb5_context context, 16122347Spst void *data, 16222347Spst size_t length, 16322347Spst EncKrbCredPart *t, 16422347Spst size_t *len) 16522347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 16622347Spst{ 16722347Spst return encode_EncKrbCredPart (data, length, t, len); 16822347Spst} 16922347Spst 17022347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 17122347Spstkrb5_decode_ETYPE_INFO (krb5_context context, 17222347Spst const void *data, 17322347Spst size_t length, 17422347Spst ETYPE_INFO *t, 17522347Spst size_t *len) 17622347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 17722347Spst{ 17822347Spst return decode_ETYPE_INFO(data, length, t, len); 17922347Spst} 18022347Spst 18122347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 18222347Spstkrb5_encode_ETYPE_INFO (krb5_context context, 18322347Spst void *data, 18422347Spst size_t length, 18522347Spst ETYPE_INFO *t, 18622347Spst size_t *len) 18722347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 18822347Spst{ 18922347Spst return encode_ETYPE_INFO (data, length, t, len); 19022347Spst} 19122347Spst 19222347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 19322347Spstkrb5_decode_ETYPE_INFO2 (krb5_context context, 19422347Spst const void *data, 19522347Spst size_t length, 19622347Spst ETYPE_INFO2 *t, 19722347Spst size_t *len) 19822347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 19922347Spst{ 20022347Spst return decode_ETYPE_INFO2(data, length, t, len); 20122347Spst} 20222347Spst 20322347SpstKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL 20422347Spstkrb5_encode_ETYPE_INFO2 (krb5_context context, 20522347Spst void *data, 20622347Spst size_t length, 20722347Spst ETYPE_INFO2 *t, 20822347Spst size_t *len) 20922347Spst KRB5_DEPRECATED_FUNCTION("Use X instead") 21022347Spst{ 21122347Spst return encode_ETYPE_INFO2 (data, length, t, len); 21222347Spst} 21322347Spst 21422347Spst#endif /* HEIMDAL_SMALLER */ 21522347Spst