Felix Geisendörfer
e27418ca3f
Prefer require.cache over native module cache
...
This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.
The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.
2010-12-13 17:58:24 -08:00
Ryan Dahl
e3d1808ef0
Rename node::SecureStream to node::crypto::Connection
...
node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)
2010-12-11 02:13:29 -08:00
Brian White
f1762ff815
Add os module and getHostname
2010-12-11 00:51:20 -08:00
Ryan Dahl
70baeba8a9
Add receivedShutdown() binding
2010-12-10 22:09:46 -08:00
Ryan Dahl
dac4d486ec
Accept Buffers as well as strings for addCert, addKey
2010-12-08 13:21:50 -08:00
Ryan Dahl
6bc9b2ef92
clients without certs are unauthed.
2010-12-07 16:51:23 -08:00
Ryan Dahl
180dfca03f
Pretty error message messes up if readFileSync in main module fails.
...
TODO test/message test for this.
2010-12-07 11:29:20 -08:00
Ryan Dahl
5bca100afe
Server must not request cert.
2010-12-05 18:13:20 -08:00
Ryan Dahl
5a21138e37
fix global leak
2010-12-04 13:39:28 -08:00
Anders Conbere
e9c7195471
Reworks the two functions traverser and findModulePath into a more readable form.
...
This is not the supposed end of these changes, but a first change that
should make future changes easier to reason about.
2010-12-04 13:20:01 -08:00
Sean Braithwaite
fcc38129a3
Check buffer length using string length
...
+ Utf8Length is really slow but has the same semantics in this case
2010-12-03 15:55:03 -08:00
Ryan Dahl
c70acbb1a3
implement openpty for sun
2010-12-03 20:49:25 +00:00
Brian White
e4bca19843
Fix tty changes for OSX
2010-12-03 09:29:48 -08:00
Ryan Dahl
a0e9a510b0
Introduce require('tty')
...
You may need to reconfigure after this commit due to the new library.
2010-12-02 18:06:43 -08:00
Ryan Dahl
da96e07bbe
fix global leak
2010-12-02 16:45:34 -08:00
Ryan Dahl
ea9006a5bc
print warning on process.ENV
2010-12-02 15:59:35 -08:00
Ryan Dahl
558e5ba2b0
lint util.js and src/node.js
2010-12-02 12:27:26 -08:00
Brian White
ddbaeef1b3
Fix executable path on FreeBSD.
2010-12-01 20:28:17 -08:00
Ryan Dahl
127f17a0ea
Remove should_verify from C++ - to handle in JS land
2010-12-01 12:47:49 -08:00
Ryan Dahl
28a86c3e56
Remove unnecessary call to X509_STORE_free
2010-12-01 09:27:13 -08:00
Ryan Dahl
504a80dc6d
Rename VerifyPeerError to VerifyError
2010-12-01 09:26:59 -08:00
Ryan Dahl
355936dcde
Implement SecureContext destructor
2010-11-30 18:19:54 -08:00
Ryan Dahl
ea540c94f8
Better verify info
2010-11-30 18:19:54 -08:00
Ryan Dahl
4b947310b2
Move root certs out of JavaScript
2010-11-30 18:19:54 -08:00
Ryan Dahl
486c74e72b
Revert "Default to TLSv1"
...
This reverts commit 97970b05fe .
2010-11-30 11:33:05 -08:00
Ryan Dahl
70188499b0
Lazy load console object
2010-11-30 11:18:02 -08:00
Ryan Dahl
81afb54c0a
Fix comment
2010-11-30 11:04:31 -08:00
Ryan Dahl
db98d6e4e0
Remove assert in verify_peer; add comments
2010-11-30 10:55:04 -08:00
Bert Belder
5ea2a61596
win: Duplicate platform_cygwin.cc into platform_win32.cc
2010-11-29 23:49:29 -08:00
Ryan Dahl
711196cafa
Don't call exit() from the signal handler
...
Fixes issue #457
2010-11-29 16:19:28 -08:00
Ryan Dahl
b6face1dce
Remove unnecessary variable def
2010-11-29 15:04:39 -08:00
Ryan Dahl
97970b05fe
Default to TLSv1
2010-11-28 23:24:32 -08:00
Ryan Dahl
bf89872306
style
2010-11-28 23:20:59 -08:00
Ryan Dahl
be2457aaca
Use SSL_MODE_RELEASE_BUFFERS by default.
2010-11-28 21:03:41 -08:00
Tom Hughes
6285fac232
Allocations with new[] must be freed with delete[].
...
See http://valgrind.org/docs/manual/mc-manual.html#mc-manual.rudefn
2010-11-24 12:53:28 -08:00
Tom Hughes
7fcfb7b981
Fix memleak in ChildProcess:Spawn().
2010-11-24 12:51:46 -08:00
Ryan Dahl
b57c1f51b9
Saner, yet still ugly, fix to displaying syntax errors
2010-11-23 18:46:13 -08:00
Wade Simmons
03e5da8429
Fix ErrnoExceptions that have the wrong syscall name
2010-11-23 14:09:16 -08:00
Ryan Dahl
f123a1ab40
hack to display syntax errors. FIXME
2010-11-22 17:55:04 -08:00
Tom Hughes
446beebd79
Add cmake build support.
...
Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with
contributions from Mark Constable (markc@renta.net ) and Daniel Gröber
(darklord@darkboxed.org ).
2010-11-22 13:32:49 -08:00
isaacs
b52b4196ab
Fix problem with requireNative not exporting 'module' object
...
Broke require('constants'). Add unrelated test which breaks it.
2010-11-22 11:55:31 -08:00
Ryan Dahl
12554380d5
Add support for SSDP methods -_-
2010-11-21 21:44:23 -08:00
Ben Noordhuis
611dffabb6
Support CNAME lookups in DNS module.
2010-11-21 20:53:57 -08:00
Ryan Dahl
7b2f5ab7f8
Fix mac build
2010-11-21 20:33:04 -08:00
Ben Noordhuis
f0b8cc6a94
require() should work with node --eval.
...
with tests
Fix module path resolve bug. Normally the module path is taken from
realpath(__filename) but with eval there is (of course) no filename
2010-11-21 20:24:26 -08:00
Ben Noordhuis
80b5a52217
Fix compiler warnings.
2010-11-21 19:11:05 -08:00
Herbert Vojčík
3422263414
requireNative made independent on module system
2010-11-21 18:17:44 -08:00
Ryan Dahl
f6479f2fb6
Print deprecation warning on process.compile
2010-11-21 15:22:08 -08:00
Ryan Dahl
a16b3c3148
Use runInNewContext instead of process.compile
2010-11-21 15:16:02 -08:00
Ryan Dahl
b1088d6bd2
Load 'path' module with requireNative
...
(now that requireNative does not depend on path module)
2010-11-21 15:07:38 -08:00