Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
crypto: fix compile-time error with openssl <= 0.9.7e
  • Loading branch information
bnoordhuis committed Mar 22, 2012
1 parent 851b397 commit ea44d30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node_crypto.cc
Expand Up @@ -993,7 +993,10 @@ Handle<Value> Connection::New(const Arguments& args) {
}


void Connection::SSLInfoCallback(const SSL *ssl, int where, int ret) {
void Connection::SSLInfoCallback(const SSL *ssl_, int where, int ret) {
// Be compatible with older versions of OpenSSL. SSL_get_app_data() wants
// a non-const SSL* in OpenSSL <= 0.9.7e.
SSL* ssl = const_cast<SSL*>(ssl_);
if (where & SSL_CB_HANDSHAKE_START) {
HandleScope scope;
Connection* c = static_cast<Connection*>(SSL_get_app_data(ssl));
Expand Down

0 comments on commit ea44d30

Please sign in to comment.