protocol/crypto: fix OpenSSL error handling in binding
protocol/crypto: fix OpenSSL error handling in binding

* Always clear the OpenSSL error stack before throwing
* Ensure we capture the current error before calling any other
OpenSSL APIs

mscdex/ssh2,mscdex/ssh2,mscdex/ssh2,mscdex/ssh2