OpenBSD CVS

CVS log for src/usr.sbin/snmpd/Attic/ber.3


[BACK] Up to [local] / src / usr.sbin / snmpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22, Sat May 11 17:46:02 2019 UTC (5 years ago) by rob
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +2 -2 lines
FILE REMOVED

The BER API is currently used by ldap, ldapd, ldapctl, ypldap, snmpd, and
snmpctl. Separate copies of ber.[ch] have existed and been maintained in sync
in ldap, ldapd, ypldap and snmpd.

This commit moves the BER API into /usr/lib/libutil. All current consumers
already link libutil. ldapd and snmpd regress passes, and release builds.

With help from tb@ and guenther@.

ok deraadt@, tb@

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 24 04:54:30 2019 UTC (5 years, 2 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.20: +12 -4 lines
Diff to previous 1.20 (colored)

Include two new functions added by martijn@. Still a work in progress.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Aug 13 16:37:56 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.19: +37 -19 lines
Diff to previous 1.19 (colored)

basic macro cleanup, break lines of excessive length, fix order of sections

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 13 15:22:39 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
Changes since 1.18: +183 -25 lines
Diff to previous 1.18 (colored)

Add more content. Tweaks from ingo. This man page is not yet hooked up to the
build and is still a work in progress. Tweaks and comments welcome.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 12 22:04:09 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Change ber_write_elements() to return ssize_t instead of int.

ok claudio@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 31 11:01:29 2018 UTC (5 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Make ber type and encoding a unsigned int instead of unsigned long.
This way the size is the same on all archs and 32bit should be good enough.
OK rob@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 29 20:28:11 2018 UTC (5 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

tweak previous;

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 29 19:28:02 2018 UTC (5 years, 11 months ago) by rob
Branch: MAIN
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored)

Add ber_free_element() to snmpd instance, reducing the diff with ldap, ldapd,
and ypldap. This function is not called by snmpd. This is the penultimate
commit prior to full sync between these four consumers of ber.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 29 15:18:03 2018 UTC (5 years, 11 months ago) by rob
Branch: MAIN
Changes since 1.13: +31 -4 lines
Diff to previous 1.13 (colored)

Synchronize ber.c and ber.h across ldap, ldapd, and ypldap, and reduce diff
with snmpd. More tweaks to come once things are fully synchronized.

Feedback from claudio and Robert Klein.

Ok claudio@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 1 12:48:27 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

add ber_oid_cmp() to the list

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 16 11:13:34 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 28 09:48:32 2012 UTC (11 years, 8 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

sync manpage with code

ok reyk

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 17 16:30:34 2012 UTC (11 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.9: +11 -4 lines
Diff to previous 1.9 (colored)

Add initial SNMPv3 support to snmpd(8).

Traps are still sent via SNMPv2 protocol. They can neither be
authenticated nor encrypted. - Transport mode is still UDP. Not
additional transport subsystems were added. - Only the User-based
Security Model (USM, RFC3414) is supported.  View-Based Access Control
(VACM, RFC3415) is not included. - Configuration is described in
snmpd.conf(5).

This diff includes a few minor changes to ber.c/h adding a necessary
callback for the USM HMAC calculation and merging it with other
minor changes from ldapd's ber code.

From Gerhard Roth at genua
ok claudio@ reyk@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 25 09:59:55 2010 UTC (14 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.8: +5 -4 lines
Diff to previous 1.8 (colored)

a little cleanup;

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 24 14:44:41 2010 UTC (14 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +2 -11 lines
Diff to previous 1.7 (colored)

manual pages should not have blank lines outside literal context,
and .Pp is not needed before or after .Sh;
found by mandoc -Tlint;
"please fix" jmc@

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 24 14:09:45 2010 UTC (14 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.6: +7 -6 lines
Diff to previous 1.6 (colored)

match code and doc; ok claudio

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 18 16:57:58 2008 UTC (16 years, 2 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.5: +7 -11 lines
Diff to previous 1.5 (colored)

remove ber_add_astring and make it the default behaviour in
ber_add_string, ber_add_nstring, and ber_add_bitstring to allocate and
copy the provided buffer instead of just attaching it to the ber
element.  this may add some overhead but fixes and avoids some bugs
with static buffers and simplifies the ber api again.

From Matthew at Dempsky dot org
With input from claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 14 15:22:22 2008 UTC (16 years, 2 months ago) by reyk
Branch: MAIN
Changes since 1.4: +6 -2 lines
Diff to previous 1.4 (colored)

add a new ber function ber_add_astring() that strdups the string and
sets the be_free flag (which is required in some cases).  this will
make it easier because it is done manually at some places in the code.

discussed with dlg

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 9 13:03:01 2008 UTC (16 years, 3 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.3: +6 -2 lines
Diff to previous 1.3 (colored)

fix a memleak in the snmp engine and the ber i/o; free the dynamically
allocated ber write buffer after using it.  extend the ber api with a
ber_free() function to do the required cleanup.

Thanks to Will Backman (bitgeist at yahoo dot com) for testing and for
figuring out that there was a memleak.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 5 23:29:19 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

more typos in comments etc.

From Leonardo Chiquitto (leonardo at ngdn dot org)

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 5 22:54:07 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

typo s/beeing/being/g

From Paul 'WEiRD' de Weerd

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 5 09:22:44 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN

Start working on snmpd(8) and snmpctl(8), a lightweight SNMP implementation
for OpenBSD.  SNMP is a necessary evil.  This is work in progress, don't
expect too much from it yet.

ok deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.