- encode boolean true value as 0x01 instead of 0xff to avoid interoperability problems

pull/396/head
Michael Zillgith 3 years ago
parent 3fe0effcda
commit 4d951e04c5

@ -67,7 +67,7 @@ BerEncoder_encodeBoolean(uint8_t tag, bool value, uint8_t* buffer, int bufPos)
buffer[bufPos++] = 1;
if (value)
buffer[bufPos++] = 0xff;
buffer[bufPos++] = 0x01;
else
buffer[bufPos++] = 0x00;

Loading…
Cancel
Save