1. Apr 08, 2014
    • Alexis Campailla's avatar
      openssl: fix keypress requirement in apps on win32 · c20b209d
      Alexis Campailla authored
      Re-applying commit 153784b3, which
      was overwritten by the update to openssl 1.0.1f.
      
      Original source:
      
      http://openssl.6102.n7.nabble.com/PATCH-s-client-Fix-keypress-requirement-with-redirected-input-on-Windows-td46787.html
      c20b209d
    • Fedor Indutny's avatar
      test: fix test-crypto · 3054decc
      Fedor Indutny authored
      3054decc
    • Fedor Indutny's avatar
      Merge branch 'v0.10' · de7c0e8c
      Fedor Indutny authored
      Conflicts:
      	deps/openssl/asm/x64-elf-gas/aes/vpaes-x86_64.s
      	deps/openssl/asm/x64-macosx-gas/aes/vpaes-x86_64.s
      	deps/openssl/asm/x64-win32-masm/aes/vpaes-x86_64.asm
      	deps/openssl/openssl/CHANGES
      	deps/openssl/openssl/Makefile
      	deps/openssl/openssl/Makefile.org
      	deps/openssl/openssl/NEWS
      	deps/openssl/openssl/README
      	deps/openssl/openssl/crypto/opensslv.h
      	deps/openssl/openssl/openssl.spec
      	deps/openssl/openssl/ssl/s23_clnt.c
      	lib/http.js
      	test/simple/test-http-client-readable.js
      de7c0e8c
    • Fedor Indutny's avatar
      deps: update openssl to 1.0.1g · d6fd1187
      Fedor Indutny authored
      d6fd1187
    • Fedor Indutny's avatar
      http: do not emit EOF non-readable socket · f2b297cc
      Fedor Indutny authored
      Socket may become not `readable`, but http should not rely on this
      property and should not think that it means that no data will ever
      arrive from it. In fact, it may arrive in a next tick and, since
      `this.push(null)` was already called, it will result in a error like
      this:
      
          Error: stream.push() after EOF
              at readableAddChunk (_stream_readable.js:143:15)
              at IncomingMessage.Readable.push (_stream_readable.js:123:10)
              at HTTPParser.parserOnBody (_http_common.js:132:22)
              at Socket.socketOnData (_http_client.js:277:20)
              at Socket.EventEmitter.emit (events.js:101:17)
              at Socket.Readable.read (_stream_readable.js:367:10)
              at Socket.socketCloseListener (_http_client.js:196:10)
              at Socket.EventEmitter.emit (events.js:123:20)
              at TCP.close (net.js:479:12)
      
      fix #6784
      f2b297cc
  2. Apr 07, 2014
  3. Apr 04, 2014
  4. Apr 03, 2014
  5. Apr 02, 2014
  6. Apr 01, 2014
    • Ben Noordhuis's avatar
      configure: make --v8-options switch more robust · 490d5ab7
      Ben Noordhuis authored
      Improve on commit b55c9d68 by not requiring that switches are comma
      separated.  This commit makes `./configure --v8-options="--foo --bar"`
      work and takes special care to properly escape quotes in the options
      string.
      490d5ab7
    • James Pickard's avatar
      fs: improve performance of all stat functions · e9ce8fc8
      James Pickard authored
      
      
      By building the fs.Stats object in JS, which is returned by all fs stat
      functions, calls to v8::Object::Set() are removed. This also includes
      creating all associated Date objects in JS, rather than using
      v8::Date::New(). Both these changes have significant performance gains.
      
      Note that the returned value from fs.stat changes slightly for non-POSIX
      systems. Whereas before the stats object would be missing blocks and
      blksize keys, it now has these keys with undefined as the value.
      
      Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
      e9ce8fc8
  7. Mar 31, 2014
  8. Mar 29, 2014
  9. Mar 28, 2014
  10. Mar 26, 2014
    • Fedor Indutny's avatar
      crypto: fix lint · e781832e
      Fedor Indutny authored
      e781832e
    • Fedor Indutny's avatar
      Merge remote-tracking branch 'origin/v0.10' · a030c7b9
      Fedor Indutny authored
      Conflicts:
      	src/node.cc
      	src/node_crypto.cc
      	src/node_crypto.h
      a030c7b9
    • Ben Noordhuis's avatar
      src: ensure that openssl's PRNG is fully seeded · f68a116c
      Ben Noordhuis authored
      Ensure that OpenSSL has enough entropy (at least 256 bits) for its PRNG.
      
      The entropy pool starts out empty and needs to fill up before the PRNG
      can be used securely.
      
      OpenSSL normally fills the pool automatically but not when someone
      starts generating random numbers before the pool is full: in that case
      OpenSSL keeps lowering the entropy estimate to thwart attackers trying
      to guess the initial state of the PRNG.
      
      When that happens, we wait until enough entropy is available, something
      that normally should never take longer than a few milliseconds.
      
      Fixes #7338.
      f68a116c
    • Ben Noordhuis's avatar
      src: seed V8's random number generator at startup · 70f198dd
      Ben Noordhuis authored
      The default entropy source is /dev/urandom on UNIX platforms, which is
      okay but we can do better by seeding it from OpenSSL's entropy pool.
      
      On Windows we can certainly do better; on that platform, V8 seeds the
      random number generator using only the current system time.
      
      Fixes #6250.
      
      NB: This is a back-port of commit 7ac23910 from the master branch that
      for some reason never got back-ported to the v0.10 branch.
      
      The default on UNIX platforms in v0.10 is different and arguably worse
      than it is with master: if no entropy source is provided, V8 3.14 calls
      srandom() with a xor of the PID and the current time in microseconds.
      
      That means that on systems with a coarse system clock, the initial
      state of the PRNG may be easily guessable.
      
      The situation on Windows is even more dire because there the PRNG is
      seeded with only the current time... in milliseconds.
      70f198dd
    • isaacs's avatar
      npm: upgrade to 1.4.6 · bd547d65
      isaacs authored
      * Documentation upgrades
      * Fix glob bug which prevents proper README publishing
      * node-gyp upgrade to 0.13
      * Documentation updates
      * Add --save-exact to save an exact dep (instead of a range)
      * alias 't' to 'test'
      bd547d65
    • Nathan Rajlich's avatar
      doc: remove `agent.request()` call in example · 69b8279d
      Nathan Rajlich authored
      The `Agent#request()` function was removed in
      f3189ace, so don't
      use it in the documentation example. The function
      wasn't documented in the first place.
      69b8279d
  11. Mar 25, 2014
    • Nathan Rajlich's avatar
      http: use defaultAgent.protocol in protocol check · 9f23fe11
      Nathan Rajlich authored
      Default to the `defaultAgent.protocol` when comparing the
      user-specified `options.protocol` string. This is so that
      `http.Agent` instances do not need to specify their own
      `protocol` field, since we have the relevant information
      already from the `defaultAgent`.
      
      Note that the test case could be separately cherry-picked
      to the `v0.10` branch, since it already passes correctly.
      
      Fixes #7349.
      Fixes the regression described in: http://git.io/2ds-WQ
      9f23fe11
  12. Mar 24, 2014
    • Ben Noordhuis's avatar
      build: fix g++ 4.8 build, disable -Werror · 7989f42f
      Ben Noordhuis authored
      Turn off -Werror when building V8, it hits -Werror=unused-local-typedefs
      with g++ 4.8.  The warning itself is harmless so don't abort the build.
      
      This was originally implemented in commit d2ab314e back in 2011 but the
      build process has gone through a few iterations since then, that change
      no longer works.
      7989f42f
  13. Mar 21, 2014
  14. Mar 18, 2014