diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-03-11 13:26:44 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-03-18 15:05:03 -0700 |
commit | ed2c6965d2f901f3c786f9d24bcd57b2cd523611 (patch) | |
tree | cc5146de343357d64bd9d8425612cbb17605c3de | |
parent | 97a919b12dd214b4c1e938ed2cd0d25a3b2cdeab (diff) | |
download | android-node-v8-ed2c6965d2f901f3c786f9d24bcd57b2cd523611.tar.gz android-node-v8-ed2c6965d2f901f3c786f9d24bcd57b2cd523611.tar.bz2 android-node-v8-ed2c6965d2f901f3c786f9d24bcd57b2cd523611.zip |
test: use EC cert property now that it exists
Remove XXX, there has been an EC specific cert property since
https://github.com/nodejs/node/pull/24358
PR-URL: https://github.com/nodejs/node/pull/26598
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
-rw-r--r-- | test/parallel/test-tls-multi-key.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/parallel/test-tls-multi-key.js b/test/parallel/test-tls-multi-key.js index 63b0363327..c5e66f3980 100644 --- a/test/parallel/test-tls-multi-key.js +++ b/test/parallel/test-tls-multi-key.js @@ -160,9 +160,7 @@ function test(options) { version: 'TLSv1.2' }); assert.strictEqual(ecdsa.getPeerCertificate().subject.CN, eccCN); - // XXX(sam) certs don't currently include EC key info, so depend on - // absence of RSA key info to indicate key is EC. - assert(!ecdsa.getPeerCertificate().exponent, 'not cert for an RSA key'); + assert.strictEqual(ecdsa.getPeerCertificate().asn1Curve, 'prime256v1'); ecdsa.end(); connectWithRsa(); })); |