Even though AgentX supports null-oids and incidentally has a valid usecase
authormartijn <martijn@openbsd.org>
Sun, 24 Oct 2021 18:03:27 +0000 (18:03 +0000)
committermartijn <martijn@openbsd.org>
Sun, 24 Oct 2021 18:03:27 +0000 (18:03 +0000)
commit9c70cf5498e471044289f4c9857b84b309c5964e
treeab32f448e4758e854cb8e40a759106a28476f10b
parent690212d9ad7c7c7bde5ff962b2930919f7ad9391
Even though AgentX supports null-oids and incidentally has a valid usecase
for them, they don't map on ber, which needs a minimum of 2 identifiers.
Enforce this minimum in libagentx.

While here add some additional checks where they were lacking.

OK claudio@
lib/libagentx/agentx.c
lib/libagentx/agentx.h