From 48b76637921972800a90114c37d439873f4e7e46 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 31 Oct 2021 16:42:08 +0000 Subject: [PATCH] Bump BER_MAX_OID_LEN to 128 From martijn, discussed with claudio, ok sthen --- lib/libutil/ber.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libutil/ber.h b/lib/libutil/ber.h index 6d12f2f52f5..0bfdb072abf 100644 --- a/lib/libutil/ber.h +++ b/lib/libutil/ber.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ber.h,v 1.4 2021/08/29 13:27:11 martijn Exp $ */ +/* $OpenBSD: ber.h,v 1.5 2021/10/31 16:42:08 tb Exp $ */ /* * Copyright (c) 2007, 2012 Reyk Floeter @@ -80,8 +80,8 @@ struct ber { #define BER_CLASS_MASK 0x3 /* common definitions */ -#define BER_MIN_OID_LEN 2 /* OBJECT */ -#define BER_MAX_OID_LEN 64 /* OBJECT */ +#define BER_MIN_OID_LEN 2 /* X.690 section 8.19.5 */ +#define BER_MAX_OID_LEN 128 /* RFC 2578 section 7.1.3 */ #define BER_MAX_SEQ_ELEMENTS USHRT_MAX /* 65535 */ struct ber_oid { -- 2.20.1