tls: follow RFC6125 more stricly
authorFedor Indutny <fedor.indutny@gmail.com>
Mon, 14 Jan 2013 23:29:46 +0000 (03:29 +0400)
committerisaacs <i@izs.me>
Tue, 15 Jan 2013 01:18:30 +0000 (17:18 -0800)
commitb4b750b6a52ebb893c9c8af93bdaca5238236547
tree496a7693336c4fb43538a241e97b034f54839ebe
parent20a3c5d09c41e2e612885a6ac166144f14179f07
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