commit | b76e43651ef16b703c81b89bc62ff1a7a3c56a97 | [log] [download] |
---|---|---|
author | Jonathan Leroy <jonathan@inikup.com> | Wed Oct 14 09:41:56 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg2@elzevir.fr> | Tue Oct 27 15:12:39 2015 +0100 |
tree | f3dab25b6c3dd248e605990db3d78a124a657540 | |
parent | c4baf98ce6fe404a98007eab4e72e604aa5e7617 [diff] |
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.