summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-10-31 16:42:09 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-10-31 16:42:09 +0000
commit50e11a8a1e681705711b8a8b95bcd96591288872 (patch)
tree27cf120c05137659acc50a2d242ae7f28e1f5f75 /lib
parent25239503c169cb4468b7dad9e74b5b67d07d080c (diff)
Bump BER_MAX_OID_LEN to 128
From martijn, discussed with claudio, ok sthen
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/ber.h6
1 files 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 <reyk@openbsd.org>
@@ -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 {