summaryrefslogtreecommitdiff
path: root/lib/_tls_common.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r--lib/_tls_common.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js
index 7153334a14..4028b02be2 100644
--- a/lib/_tls_common.js
+++ b/lib/_tls_common.js
@@ -202,6 +202,9 @@ exports.createSecureContext = function createSecureContext(options) {
return c;
};
+// Translate some fields from the handle's C-friendly format into more idiomatic
+// javascript object representations before passing them back to the user. Can
+// be used on any cert object, but changing the name would be semver-major.
exports.translatePeerCertificate = function translatePeerCertificate(c) {
if (!c)
return null;