Error codes are different in OpenSSL 1.0.1