Browse Source

Default to TLSv1

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
97970b05fe
  1. 2
      src/node_crypto.cc

2
src/node_crypto.cc

@ -67,7 +67,7 @@ Handle<Value> SecureContext::Init(const Arguments& args) {
SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder()); SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
OPENSSL_CONST SSL_METHOD *method = SSLv23_method(); OPENSSL_CONST SSL_METHOD *method = TLSv1_method();
if (args.Length() == 1 && args[0]->IsString()) { if (args.Length() == 1 && args[0]->IsString()) {
String::Utf8Value sslmethod(args[0]->ToString()); String::Utf8Value sslmethod(args[0]->ToString());

Loading…
Cancel
Save