1. Jan 23, 2014
  2. Jan 22, 2014
  3. Jan 21, 2014
  4. Jan 20, 2014
  5. Jan 18, 2014
    • Ben Noordhuis's avatar
      src: don't mark addon_register_func as dllimport · cda41f87
      Ben Noordhuis authored
      
      
      addon_register_func and its cousin addon_context_register_func are type
      definitions, dllimport and dllexport are name mangling directives, i.e.
      they're quite unrelated concepts.  MinGW complains about mixing them
      when cross-compiling native add-ons.
      
      Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
      Signed-off-by: default avatarBert Belder <bertbelder@gmail.com>
      cda41f87
    • Ben Noordhuis's avatar
      tls: make cert/pfx optional in tls.createServer() · db5abd72
      Ben Noordhuis authored
      Not all ciphers require the presence of a certificate.  Remove the
      check in lib/_tls_wrap.js.
      
      Fixes #6887.
      db5abd72
    • Ben Noordhuis's avatar
      tls: show human-readable error messages · 262a752c
      Ben Noordhuis authored
      Before this commit, verification exceptions had err.message set to the
      OpenSSL error code (e.g. 'UNABLE_TO_VERIFY_LEAF_SIGNATURE').
      
      This commit moves the error code to err.code and replaces err.message
      with a human-readable error.  Example:
      
          // before
          {
            message: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
          }
      
          // after
          {
            code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
            message: 'unable to verify the first certificate'
          }
      
      UNABLE_TO_VERIFY_LEAF_SIGNATURE is a good example of why you want this:
      the error code suggests that it's the last certificate that fails to
      validate while it's actually the first certificate in the chain.
      
      Going by the number of mailing list posts and StackOverflow questions,
      it's a source of confusion to many people.
      262a752c
  6. Jan 16, 2014
  7. Jan 14, 2014