openssl: Use 'CURLcode result'

More standardisation of CURLcode usage and coding style.