Been writing code that uses OpenSSL, and I've noticed that, confusingly, most of the crypto library functions return 1 for success and 0 for failure:
- RSA_public_decrypt fails when using RSA_set0_key(key, n,e,d)?
- https://www.openssl.org/docs/man1.1.0/ssl/SSL_CTX_set_verify.html
- https://github.com/openssl/openssl/blob/57d7b988b498ed34e98d1957fbbded8342f2a952/include/openssl/ec.h#L464
- https://github.com/openssl/openssl/blob/master/doc/man3/EVP_EncryptInit.pod#examples
So my question is, why does OpenSSL not use the typical C/POSIX standard return values ?