1122394Sharti/* 2122394Sharti * Copyright (c) 2001-2003 3122394Sharti * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4122394Sharti * All rights reserved. 5122394Sharti * 6122394Sharti * Author: Harti Brandt <harti@freebsd.org> 7133211Sharti * 8133211Sharti * Redistribution and use in source and binary forms, with or without 9133211Sharti * modification, are permitted provided that the following conditions 10133211Sharti * are met: 11133211Sharti * 1. Redistributions of source code must retain the above copyright 12133211Sharti * notice, this list of conditions and the following disclaimer. 13122394Sharti * 2. Redistributions in binary form must reproduce the above copyright 14122394Sharti * notice, this list of conditions and the following disclaimer in the 15122394Sharti * documentation and/or other materials provided with the distribution. 16133211Sharti * 17133211Sharti * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18133211Sharti * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19133211Sharti * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20133211Sharti * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 21133211Sharti * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22133211Sharti * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23133211Sharti * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24133211Sharti * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25133211Sharti * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26133211Sharti * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27133211Sharti * SUCH DAMAGE. 28122394Sharti * 29133211Sharti * $Begemot: bsnmp/lib/snmppriv.h,v 1.9 2004/08/06 08:46:58 brandt Exp $ 30122394Sharti * 31122394Sharti * Private functions. 32122394Sharti */ 33133211Sharti#include <sys/cdefs.h> 34133211Sharti 35122394Shartienum asn_err snmp_binding_encode(struct asn_buf *, const struct snmp_value *); 36122394Shartienum snmp_code snmp_pdu_encode_header(struct asn_buf *, struct snmp_pdu *); 37216294Ssyrinxenum snmp_code snmp_fix_encoding(struct asn_buf *, struct snmp_pdu *); 38122394Shartienum asn_err snmp_parse_pdus_hdr(struct asn_buf *b, struct snmp_pdu *pdu, 39122394Sharti asn_len_t *lenp); 40122394Sharti 41216482Ssyrinxenum snmp_code snmp_pdu_calc_digest(const struct snmp_pdu *, uint8_t *); 42216482Ssyrinxenum snmp_code snmp_pdu_encrypt(const struct snmp_pdu *); 43216482Ssyrinxenum snmp_code snmp_pdu_decrypt(const struct snmp_pdu *); 44216294Ssyrinx 45122394Sharti#define DEFAULT_HOST "localhost" 46122394Sharti#define DEFAULT_PORT "snmp" 47122394Sharti#define DEFAULT_LOCAL "/var/run/snmp.sock" 48