From bd9a6a01946a4bafb5714c023dbbe11ff8974cd9 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Mon, 30 Aug 2021 15:31:28 +0900 Subject: [PATCH] src: add x509.fingerprint512 to crypto module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39809 Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: Filip Skokan Reviewed-By: James M Snell --- doc/api/crypto.md | 9 +++++++++ doc/api/tls.md | 7 +++++++ lib/internal/crypto/x509.js | 10 ++++++++++ src/crypto/crypto_common.cc | 4 ++++ src/crypto/crypto_x509.cc | 10 ++++++++++ src/crypto/crypto_x509.h | 1 + src/env.h | 1 + test/parallel/test-crypto-x509.js | 11 +++++++++++ test/parallel/test-tls-peer-certificate.js | 12 ++++++++++++ 9 files changed, 65 insertions(+) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index eb0f416a4f8cb4..176adeb71f518e 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2564,6 +2564,15 @@ added: v15.6.0 The SHA-256 fingerprint of this certificate. +### `x509.fingerprint512` + + +* Type: {string} + +The SHA-512 fingerprint of this certificate. + ### `x509.infoAccess`