diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2018-11-09 15:05:34 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2018-11-20 13:21:08 -0800 |
commit | fe303b9b2dd8224e368ed69d6b797bc34dd94d07 (patch) | |
tree | 2591608d18e88eb9c21a099c0ef02eff0f8291d3 /src/node_crypto.h | |
parent | a856406c2dc0f6edf9b33067cd91fa1a71eab041 (diff) | |
download | android-node-v8-fe303b9b2dd8224e368ed69d6b797bc34dd94d07.tar.gz android-node-v8-fe303b9b2dd8224e368ed69d6b797bc34dd94d07.tar.bz2 android-node-v8-fe303b9b2dd8224e368ed69d6b797bc34dd94d07.zip |
tls: include elliptic curve X.509 public key info
X.509 certs are provided to the user in a parsed object form by a number
of TLS APIs. Include public key info for elliptic curves as well, not
just RSA.
- pubkey: the public key
- bits: the strength of the curve
- asn1Curve: the ASN.1 OID for the curve
- nistCurve: the NIST nickname for the curve, if it has one
PR-URL: https://github.com/nodejs/node/pull/24358
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index f85cdd3208..5f98af754e 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -81,6 +81,7 @@ using EVPKeyPointer = DeleteFnPtr<EVP_PKEY, EVP_PKEY_free>; using EVPKeyCtxPointer = DeleteFnPtr<EVP_PKEY_CTX, EVP_PKEY_CTX_free>; using EVPMDPointer = DeleteFnPtr<EVP_MD_CTX, EVP_MD_CTX_free>; using RSAPointer = DeleteFnPtr<RSA, RSA_free>; +using ECPointer = DeleteFnPtr<EC_KEY, EC_KEY_free>; using BignumPointer = DeleteFnPtr<BIGNUM, BN_free>; using NetscapeSPKIPointer = DeleteFnPtr<NETSCAPE_SPKI, NETSCAPE_SPKI_free>; using ECGroupPointer = DeleteFnPtr<EC_GROUP, EC_GROUP_free>; |