1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-12 16:41:03 +03:00
Files
mbedtls/library/asn1write.c
Jonathan Leroy 87c96c2e53 Fix boolean values according to DER specs
In BER encoding, any boolean with a non-zero value is considered as
TRUE. However, DER encoding require a value of 255 (0xFF) for TRUE.

This commit makes `mbedtls_asn1_write_bool` function uses `255` instead
of `1` for BOOLEAN values.

With this fix, boolean values are now reconized by OS X keychain (tested
on OS X 10.11).

Fixes #318.
2015-10-14 09:41:56 +02:00

9.7 KiB