mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-11-12 16:41:03 +03:00
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.
9.7 KiB
9.7 KiB