Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed ASN1::Boolean encoding issue for OpenSSL 1.0.0 compatibility
ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which means 'true'. ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false' but OpenSSL >= 1.0.0 treats it as 'true'. ruby-ossl was using 0x100 for 'false' for backward compatibility. Just use 0x0 forthe case OpenSSL >= OpenSSL 0.9.7.
- Loading branch information