diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/node/tls.js | 6 | ||||
-rw-r--r-- | src/js/out/modules/node/tls.js | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/js/node/tls.js b/src/js/node/tls.js index e8c2dd998..aa3601311 100644 --- a/src/js/node/tls.js +++ b/src/js/node/tls.js @@ -145,6 +145,12 @@ function splitEscapedAltNames(altNames) { ArrayPrototypePush.call(result, currentToken); return result; } + +// TODO: +function canonicalizeIP(ip) { + return ip; +} + function checkServerIdentity(hostname, cert) { const subject = cert.subject; const altNames = cert.subjectaltname; diff --git a/src/js/out/modules/node/tls.js b/src/js/out/modules/node/tls.js index fba1e413a..1888b4703 100644 --- a/src/js/out/modules/node/tls.js +++ b/src/js/out/modules/node/tls.js @@ -67,6 +67,8 @@ var parseCertString = function() { currentToken += StringPrototypeSubstring.call(altNames, offset), offset = altNames.length; } return ArrayPrototypePush.call(result, currentToken), result; +}, canonicalizeIP = function(ip) { + return ip; }, checkServerIdentity = function(hostname, cert) { const { subject, subjectaltname: altNames } = cert, dnsNames = [], ips = []; if (hostname = "" + hostname, altNames) { |