2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright 1994 by the Massachusetts Institute of Technology. 2N/A * All Rights Reserved. 2N/A * Export of this software from the United States of America may 2N/A * require a specific license from the United States Government. 2N/A * It is the responsibility of any person or organization contemplating 2N/A * export to obtain such a license before exporting. 2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 2N/A * distribute this software and its documentation for any purpose and 2N/A * without fee is hereby granted, provided that the above copyright 2N/A * notice appear in all copies and that both that copyright notice and 2N/A * this permission notice appear in supporting documentation, and that 2N/A * the name of M.I.T. not be used in advertising or publicity pertaining 2N/A * to distribution of the software without specific, written prior 2N/A * permission. Furthermore if you modify this software you must label 2N/A * your software as modified software and not distribute it in such a 2N/A * fashion that it might be confused with the original M.I.T. software. 2N/A * M.I.T. makes no representations about the suitability of 2N/A * this software for any purpose. It is provided "as is" without express 2N/A * or implied warranty. 2N/A/* asn1_error_code asn1_decode_scalar_type(asn1buf *buf, krb5_scalar *val); */ 2N/A * requires *buf is allocated, *buf's current position points to the 2N/A * beginning of an encoding (<id> <len> <contents>), 2N/A * effects Decodes the encoding in *buf, returning the result in *val. 2N/A * Returns ASN1_BAD_ID if the encoded id does not indicate 2N/A * Returns ASN1_OVERRUN if the encoded length exceeds 2N/A * the bounds of *buf 2N/A * asn1_error_code asn1_decode_structure_type(asn1buf *buf, 2N/A * krb5_structure *val); 2N/A * requires *buf is allocated, *buf's current position points to the 2N/A * beginning of an encoding (<id> <len> <contents>), 2N/A * Assumes that *val is a freshly-allocated structure (i.e. 2N/A * does not attempt to clean up or free *val). 2N/A * effects Decodes the encoding in *buf, returning the result in *val. 2N/A * Returns ASN1_BAD_ID if the encoded id does not indicate 2N/A * Returns ASN1_OVERRUN if the encoded length exceeds the 2N/A/* asn1_error_code asn1_decode_array_type(asn1buf *buf, krb5_scalar ***val); */ 2N/A * requires *buf is allocated, *buf's current position points to the 2N/A * beginning of an encoding (<id> <len> <contents>) 2N/A * Assumes that *val is empty (i.e. does not attempt to 2N/A * clean up or free *val). 2N/A * effects Decodes the encoding in *buf, returning the result in *val. 2N/A * Returns ASN1_BAD_ID if the encoded id does not indicate 2N/A * Returns ASN1_OVERRUN if the encoded length exceeds the