Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Beglin <dbeglinuk@gmail.com>2019-05-18 01:17:19 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2019-05-21 14:13:29 +0300
commit9f5b6900e788afce29d27b71d167f188064e4ede (patch)
tree8b448424f38fbb1e541b5b2a577c555cf2a5173a
parentd1da11765d886c764b93f25c1b95fe14472c2946 (diff)
doc: corrected tlsSocket.getPeerCertificate response type
Within tls.md, the documentation for the response of tlsSocket.getPeerCertificate() included subjectaltname documented as an array of values. However these values are actually returned as a single string of concatenated values. The documentation has been updated to reflect this. PR-URL: https://github.com/nodejs/node/pull/27757 Fixes: https://github.com/nodejs/node/issues/27721 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
-rw-r--r--doc/api/tls.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/tls.md b/doc/api/tls.md
index d4c795bb3da..3edb604071e 100644
--- a/doc/api/tls.md
+++ b/doc/api/tls.md
@@ -917,8 +917,8 @@ certificate.
It is returned as a `:` separated hexadecimal string. Example:
`'2A:7A:C2:DD:...'`.
* `ext_key_usage` {Array} (Optional) The extended key usage, a set of OIDs.
-* `subjectaltname` {Array} (Optional) An array of names for the subject, an
- alternative to the `subject` names.
+* `subjectaltname` {string} (Optional) A string containing concatenated names
+ for the subject, an alternative to the `subject` names.
* `infoAccess` {Array} (Optional) An array describing the AuthorityInfoAccess,
used with OCSP.
* `issuerCertificate` {Object} (Optional) The issuer certificate object. For