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:
authorJames M Snell <jasnell@gmail.com>2021-01-05 08:27:20 +0300
committerJames M Snell <jasnell@gmail.com>2021-01-09 23:04:23 +0300
commitf5287a4b7b0b14f69b264d8017b76c100f5bc2c1 (patch)
tree7700f054e20379efd263fe98597a3bcf995ec2cf /src/node_crypto.h
parent324a6c235a5bfcbcd7cc7491d55461915c10af34 (diff)
crypto: introduce X509Certificate API
Introduces the `crypto.X509Certificate` object. ```js const { X509Certificate } = require('crypto'); const x509 = new X509Certificate('{pem encoded cert}'); console.log(x509.subject); ``` Fixes: https://github.com/nodejs/node/issues/29181 Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/36804 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 2d7837c049c..21364ac987a 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -50,6 +50,7 @@
#include "crypto/crypto_tls.h"
#include "crypto/crypto_timing.h"
#include "crypto/crypto_util.h"
+#include "crypto/crypto_x509.h"
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS