tls: follow RFC6125 more stricly
authorFedor Indutny <fedor.indutny@gmail.com>
Mon, 14 Jan 2013 23:29:46 +0000 (03:29 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 17 Jan 2013 23:48:05 +0000 (03:48 +0400)
commit31583be04218c49d91440a58969dbfc4f5f7b472
tree7d43b387fb50f6b0e34bcd775f30a3f398867548
parente70d1bfe647b2426afe769a26c8febbbfe0aff96
tls: follow RFC6125 more stricly

* Allow wildcards only in left-most part of hostname identifier.
* Do not match CN if altnames are present
lib/tls.js
test/simple/test-tls-check-server-identity.js