Merge pull request #1780 from reaperhulk/allow-zero-bn

allow zero value bn using _bn_to_int in the openssl backend