OpenBSD CVS

CVS log for src/usr.bin/ldap/Attic/ber.h


[BACK] Up to [local] / src / usr.bin / ldap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9, Sat May 11 17:46:02 2019 UTC (5 years ago) by rob
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 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.8 / (download) - annotate - [select for diffs], Tue Nov 27 12:04:57 2018 UTC (5 years, 5 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored)

LDAP returns values as OCTET STRINGs, which can be LDAPStrings, but isn't
always the case. This caused some malformed output when querying databases
returning data containing NUL-bytes. Fix this by also returning the
actual size.

With this diff we should produce basically identical output to openldap's
ldapsearch.

Lots of back and forths with claudio@

OK claudio@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 12 22:04:09 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Change ber_write_elements() to return ssize_t instead of int.

ok claudio@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 3 01:51:28 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Place a limit on the number of elements in a ber sequence/set. This prevents
possible stack overflow due to recursion in ber_free_elements().

ok claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 31 11:02:01 2018 UTC (5 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Tue Jul 3 18:49:10 2018 UTC (5 years, 10 months ago) by rob
Branch: MAIN
Changes since 1.3: +15 -1 lines
Diff to previous 1.3 (colored)

Synchronize ber changes from the snmpd instance to ldap, ldapd, and ypldap.

See usr.sbin/snmpd/ber.c revision 1.24 commit log for a summary of these
changes (e.g. SNMPv2 traps, User-based Security Model, callback for USM HMAC
calculations).

There is one final ber piece to copy from the snmpd instance related to
ber_getc() which will be done in a separate diff.

"looks good to me" deraadt@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 29 18:28:41 2018 UTC (5 years, 10 months ago) by rob
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Consistent use of copyright notices.

Ok reyk@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 29 15:18:03 2018 UTC (5 years, 10 months ago) by rob
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (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.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Jun 13 15:45:57 2018 UTC (5 years, 11 months ago) by reyk
Branch: reyk
CVS Tags: ldap_20180613
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import ldap(1), a simple ldap search client.

We have an ldapd(8) server and ypldap in base, so it makes sense to
have a simple LDAP client without depending on the OpenLDAP package.
This tool can be used in an ssh(1) AuthorizedKeysCommand script.

With feedback from many including millert@ schwarze@ gilles@ dlg@ jsing@

OK deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 13 15:45:57 2018 UTC (5 years, 11 months ago) by reyk
Branch: MAIN

Initial revision

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.