snmppriv.h (2b8026620c8afbea7b2ec873e1b26e025c67ba8f) snmppriv.h (72cd7a520d65ad6c36e208486118fbc92039423e)
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

--- 24 unchanged lines hidden (view full) ---

33#include <sys/cdefs.h>
34
35enum asn_err snmp_binding_encode(struct asn_buf *, const struct snmp_value *);
36enum snmp_code snmp_pdu_encode_header(struct asn_buf *, struct snmp_pdu *);
37enum snmp_code snmp_fix_encoding(struct asn_buf *, struct snmp_pdu *);
38enum asn_err snmp_parse_pdus_hdr(struct asn_buf *b, struct snmp_pdu *pdu,
39 asn_len_t *lenp);
40
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

--- 24 unchanged lines hidden (view full) ---

33#include <sys/cdefs.h>
34
35enum asn_err snmp_binding_encode(struct asn_buf *, const struct snmp_value *);
36enum snmp_code snmp_pdu_encode_header(struct asn_buf *, struct snmp_pdu *);
37enum snmp_code snmp_fix_encoding(struct asn_buf *, struct snmp_pdu *);
38enum asn_err snmp_parse_pdus_hdr(struct asn_buf *b, struct snmp_pdu *pdu,
39 asn_len_t *lenp);
40
41void snmp_pdu_init_secparams(struct snmp_pdu *, struct snmp_engine *,
42 struct snmp_user *);
43
44enum snmp_code snmp_pdu_calc_digest(const struct snmp_pdu *, uint8_t *);
45enum snmp_code snmp_pdu_encrypt(const struct snmp_pdu *);
46enum snmp_code snmp_pdu_decrypt(const struct snmp_pdu *);
47
48#define DEFAULT_HOST "localhost"
49#define DEFAULT_PORT "snmp"
50#define DEFAULT_LOCAL "/var/run/snmp.sock"
41enum snmp_code snmp_pdu_calc_digest(const struct snmp_pdu *, uint8_t *);
42enum snmp_code snmp_pdu_encrypt(const struct snmp_pdu *);
43enum snmp_code snmp_pdu_decrypt(const struct snmp_pdu *);
44
45#define DEFAULT_HOST "localhost"
46#define DEFAULT_PORT "snmp"
47#define DEFAULT_LOCAL "/var/run/snmp.sock"