MCPcopy Create free account
hub / github.com/nodejs/node / checkIP

Method checkIP

lib/internal/crypto/x509.js:360–368  ·  view source on GitHub ↗
(ip, options)

Source from the content-addressed store, hash-verified

358 }
359
360 checkIP(ip, options) {
361 validateString(ip, 'ip');
362 // The options argument is currently undocumented since none of the options
363 // have any effect on the behavior of this function. However, we still parse
364 // the options argument in case OpenSSL adds flags in the future that do
365 // affect the behavior of X509_check_ip. This ensures that no invalid values
366 // are passed as the second argument in the meantime.
367 return this[kHandle].checkIP(ip, getFlags(options));
368 }
369
370 checkIssued(otherCert) {
371 if (!isX509Certificate(otherCert))

Callers 1

Calls 1

getFlagsFunction · 0.70

Tested by

no test coverage detected