Skip to content

Commit 9c83002

Browse files
sam-githubtargos
authored andcommitted
test: use EC cert property now that it exists
Remove XXX, there has been an EC specific cert property since #24358 PR-URL: #26598 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent ea42514 commit 9c83002

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: test/parallel/test-tls-multi-key.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ function test(options) {
160160
version: 'TLSv1/SSLv3'
161161
});
162162
assert.strictEqual(ecdsa.getPeerCertificate().subject.CN, eccCN);
163-
// XXX(sam) certs don't currently include EC key info, so depend on
164-
// absence of RSA key info to indicate key is EC.
165-
assert(!ecdsa.getPeerCertificate().exponent, 'not cert for an RSA key');
163+
assert.strictEqual(ecdsa.getPeerCertificate().asn1Curve, 'prime256v1');
166164
ecdsa.end();
167165
connectWithRsa();
168166
}));

0 commit comments

Comments
 (0)