asn1.c (133211) | asn1.c (150920) |
---|---|
1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $Begemot: bsnmp/lib/asn1.c,v 1.28 2004/08/06 08:46:49 brandt Exp $ | 29 * $Begemot: bsnmp/lib/asn1.c,v 1.29 2005/10/04 11:21:31 brandt_h Exp $ |
30 * 31 * ASN.1 for SNMP. 32 */ 33#include <sys/types.h> 34#include <stdio.h> 35#include <stdlib.h> 36#include <stdarg.h> 37#include <string.h> | 30 * 31 * ASN.1 for SNMP. 32 */ 33#include <sys/types.h> 34#include <stdio.h> 35#include <stdlib.h> 36#include <stdarg.h> 37#include <string.h> |
38#ifdef HAVE_STDINT_H |
|
38#include <stdint.h> | 39#include <stdint.h> |
40#elif defined(HAVE_INTTYPES_H) 41#include <inttypes.h> 42#endif |
|
39#include <assert.h> 40#include "asn1.h" 41 42static void asn_error_func(const struct asn_buf *, const char *, ...); 43 44void (*asn_error)(const struct asn_buf *, const char *, ...) = asn_error_func; 45 46/* --- 954 unchanged lines hidden --- | 43#include <assert.h> 44#include "asn1.h" 45 46static void asn_error_func(const struct asn_buf *, const char *, ...); 47 48void (*asn_error)(const struct asn_buf *, const char *, ...) = asn_error_func; 49 50/* --- 954 unchanged lines hidden --- |