Browse Source

Increase BER_MAX_OID_LEN from 32 to 64. Not every snmp OID found in the

wild fits inside 32 elements, like UsmUserEntry objects.
OK rob@, claudio@
OPENBSD_6_7
martijn 5 years ago
parent
commit
1355e20716
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/lib/libutil/ber.h
  2. +3
    -3
      src/lib/libutil/ober_oid_cmp.3
  3. +1
    -1
      src/lib/libutil/shlib_version

+ 2
- 2
src/lib/libutil/ber.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: ber.h,v 1.2 2019/10/24 12:39:26 tb Exp $ */
/* $OpenBSD: ber.h,v 1.3 2019/12/31 10:34:14 martijn Exp $ */
/*
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org>
@ -81,7 +81,7 @@ struct ber {
/* common definitions */
#define BER_MIN_OID_LEN 2 /* OBJECT */
#define BER_MAX_OID_LEN 32 /* OBJECT */
#define BER_MAX_OID_LEN 64 /* OBJECT */
#define BER_MAX_SEQ_ELEMENTS USHRT_MAX /* 65535 */
struct ber_oid {


+ 3
- 3
src/lib/libutil/ober_oid_cmp.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: ober_oid_cmp.3,v 1.1 2019/10/24 12:39:26 tb Exp $
.\" $OpenBSD: ober_oid_cmp.3,v 1.2 2019/12/31 10:34:14 martijn Exp $
.\"
.\" Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org>
.\"
@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: October 24 2019 $
.Dd $Mdocdate: December 31 2019 $
.Dt OBER_OID_CMP 3
.Os
.Sh NAME
@ -39,7 +39,7 @@ For internal representation of OIDs, the following structure
is being used:
.Bd -literal
#define BER_MIN_OID_LEN 2
#define BER_MAX_OID_LEN 32
#define BER_MAX_OID_LEN 64
struct ber_oid {
u_int32_t bo_id[BER_MAX_OID_LEN + 1];


+ 1
- 1
src/lib/libutil/shlib_version View File

@ -1,2 +1,2 @@
major=14
major=15
minor=0

Loading…
Cancel
Save