1f06ca4afSHartmut Brandt /* 2f06ca4afSHartmut Brandt * Copyright (c) 2001-2003 3f06ca4afSHartmut Brandt * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4f06ca4afSHartmut Brandt * All rights reserved. 5f06ca4afSHartmut Brandt * 6f06ca4afSHartmut Brandt * Author: Harti Brandt <harti@freebsd.org> 7f06ca4afSHartmut Brandt * 8896052c1SHartmut Brandt * Redistribution and use in source and binary forms, with or without 9896052c1SHartmut Brandt * modification, are permitted provided that the following conditions 10896052c1SHartmut Brandt * are met: 11896052c1SHartmut Brandt * 1. Redistributions of source code must retain the above copyright 12896052c1SHartmut Brandt * notice, this list of conditions and the following disclaimer. 13f06ca4afSHartmut Brandt * 2. Redistributions in binary form must reproduce the above copyright 14f06ca4afSHartmut Brandt * notice, this list of conditions and the following disclaimer in the 15f06ca4afSHartmut Brandt * documentation and/or other materials provided with the distribution. 16f06ca4afSHartmut Brandt * 17896052c1SHartmut Brandt * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18896052c1SHartmut Brandt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19896052c1SHartmut Brandt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20896052c1SHartmut Brandt * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 21896052c1SHartmut Brandt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22896052c1SHartmut Brandt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23896052c1SHartmut Brandt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24896052c1SHartmut Brandt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25896052c1SHartmut Brandt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26896052c1SHartmut Brandt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27896052c1SHartmut Brandt * SUCH DAMAGE. 28f06ca4afSHartmut Brandt * 29896052c1SHartmut Brandt * $Begemot: bsnmp/lib/snmppriv.h,v 1.9 2004/08/06 08:46:58 brandt Exp $ 30f06ca4afSHartmut Brandt * 31f06ca4afSHartmut Brandt * Private functions. 32f06ca4afSHartmut Brandt */ 33896052c1SHartmut Brandt #include <sys/cdefs.h> 34896052c1SHartmut Brandt 35f06ca4afSHartmut Brandt enum asn_err snmp_binding_encode(struct asn_buf *, const struct snmp_value *); 36f06ca4afSHartmut Brandt enum snmp_code snmp_pdu_encode_header(struct asn_buf *, struct snmp_pdu *); 37135f7de5SShteryana Shopova enum snmp_code snmp_fix_encoding(struct asn_buf *, struct snmp_pdu *); 38f06ca4afSHartmut Brandt enum asn_err snmp_parse_pdus_hdr(struct asn_buf *b, struct snmp_pdu *pdu, 39f06ca4afSHartmut Brandt asn_len_t *lenp); 40f06ca4afSHartmut Brandt 41*2b802662SShteryana Shopova enum snmp_code snmp_pdu_calc_digest(const struct snmp_pdu *, uint8_t *); 42*2b802662SShteryana Shopova enum snmp_code snmp_pdu_encrypt(const struct snmp_pdu *); 43*2b802662SShteryana Shopova enum snmp_code snmp_pdu_decrypt(const struct snmp_pdu *); 44135f7de5SShteryana Shopova 45f06ca4afSHartmut Brandt #define DEFAULT_HOST "localhost" 46f06ca4afSHartmut Brandt #define DEFAULT_PORT "snmp" 47f06ca4afSHartmut Brandt #define DEFAULT_LOCAL "/var/run/snmp.sock" 48