0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Mike Atkins f1810ed1b8 tls: handle empty cert in checkServerIndentity
This resolves joyent/node#9272. `tlsSocket.getPeerCertificate` will
return an empty object when the peer does not provide a certificate,
but, prior to this, when the certificate is empty, `checkServerIdentity`
would throw because the `subject` wasn't present on the cert.
`checkServerIdentity` must return an error, not throw one, so this
returns an error when the cert is empty instead of throwing
a `TypeError`.

PR-URL: https://github.com/nodejs/node/pull/2343
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
2015-08-21 11:24:51 +09:00
..
internal repl: dont throw ENOENT on NODE_REPL_HISTORY_FILE 2015-08-20 10:29:35 -04:00
_debug_agent.js
_debugger.js
_http_agent.js http: fix agent.getName() and add tests 2015-08-04 11:56:17 -07:00
_http_client.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
_http_common.js
_http_incoming.js
_http_outgoing.js http: Check this.connection before using it 2015-07-22 21:44:59 +05:30
_http_server.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
_linklist.js
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
_stream_transform.js
_stream_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
_stream_writable.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_tls_common.js
_tls_legacy.js
_tls_wrap.js stream_base: various improvements 2015-08-20 01:14:37 -07:00
assert.js
buffer.js buffer: fix missing null/undefined check 2015-08-04 11:56:17 -07:00
child_process.js child_process: fix arguments comments 2015-07-12 01:16:31 +02:00
cluster.js cluster: do not unconditionally set --debug-port 2015-08-04 11:56:12 -07:00
console.js
constants.js
crypto.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
dgram.js dgram: make send cb act as "error" event handler 2015-08-04 11:56:12 -07:00
dns.js Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD" 2015-08-04 11:56:10 -07:00
domain.js deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
events.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
freelist.js lib,test: add freelist deprecation and test 2015-07-17 19:48:31 -07:00
fs.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
http.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
https.js https: reuse TLS sessions in Agent 2015-07-27 11:48:36 -07:00
module.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
net.js net: ensure Socket reported address is current 2015-08-06 10:45:59 -07:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: use '===' instead of '==' for comparison 2015-08-17 20:47:41 +02:00
process.js
punycode.js
querystring.js
readline.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
repl.js repl: don't clobber RegExp.$ properties 2015-08-04 10:21:37 +05:30
smalloc.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
stream.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
string_decoder.js
sys.js
timers.js
tls.js tls: handle empty cert in checkServerIndentity 2015-08-21 11:24:51 +09:00
tty.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
url.js doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
util.js util: display constructor when inspecting objects 2015-08-08 00:13:52 -04:00
v8.js src: add total_available_size to v8 statistics 2015-08-11 22:51:50 +02:00
vm.js
zlib.js buffer: fix usage of kMaxLength 2015-08-04 11:56:12 -07:00