On 2021/01/04 09:57, Martijn van Duren wrote:
> Thanks for the feedback, it's always nice to get some background
> information on old standards. However, this change is specifically for
> SNMP, which does not use this part of BER/ASN1 as far as I could find.
> I'm not going to remove it from ber.c and someone(tm) should look at
> the LDAP spec to see if it's actually prescribed there.
SNMP MIBs are written in SMI (RFC1212) which does not include a Boolean
type. There's a specific paragraph showing that it would be mapped to
an integer.
======
5.1.1. Mapping to the SYNTAX clause
When mapping to the SYNTAX clause of the OBJECT-type macro:
(1) An object with BOOLEAN syntax becomes an INTEGER taking
either of values true(1) or false(2).
======
martijn: OK with me.