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

Weird SSLv2 problem #880

@qharlie

Description

@qharlie

I'm on ubuntu 10.04 with libssl-dev and libcrypto installed, compiling node from head I kept getting

../src/node_crypto.cc: In static member function ‘static v8::Handlev8::Value node::crypto::SecureContext::Init(const v8::Arguments&)’:
../src/node_crypto.cc:102: error: ‘SSLv2_method’ was not declared in this scope
../src/node_crypto.cc:104: error: ‘SSLv2_server_method’ was not declared in this scope
../src/node_crypto.cc:106: error: ‘SSLv2_client_method’ was not declared in this scope

Looking in ssl.h I see they have a conditional

ifndef OPENSSL_NO_SSL2

I wrapped the parts in node_crypto.cc to look like this

ifndef OPENSSL_NO_SSL2

if (strcmp(*sslmethod, "SSLv2_method") == 0) {
  method = SSLv2_method();
} else if (strcmp(*sslmethod, "SSLv2_server_method") == 0) {
  method = SSLv2_server_method();
} else if (strcmp(*sslmethod, "SSLv2_client_method") == 0) {
  method = SSLv2_client_method();
} 

endif

And the problem went away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions