Use signed types where necessary, and add missing functionality to make SSL_nread0 work.
Use signed types where necessary, and add missing functionality
to make SSL_nread0 work.

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl