Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

test: fix ssl/tls options matrix test #9027

Closed

Conversation

misterdjules
Copy link

The tests suite available in test/external/ssl-options was originally
written for security fixes made in the v0.10 branch. In this branch, the
client's default ciphers list is compatible with SSLv2.

After merging this change from v0.10 to v0.12, this tests suite was
broken because commits 5d2aef1 and
f4c8020 make SSL/TLS clients use a
default ciphers list that is not compatible with the SSLv2 protocol.

This change fixes two issues:

  1. The cipher list that was setup for a given test was not passed
    properly to the client.
  2. When either or both of clients/servers were using SSLv2, tests were
    expected to succeed when at least the server end was using SSLv2
    compatible ciphers. Now, tests are expected to succeed only if
    SSLv2 compatible ciphers are used on both ends.

Fixes #9020.

The tests suite available in test/external/ssl-options was originally
written for security fixes made in the v0.10 branch. In this branch, the
client's default ciphers list is compatible with SSLv2.

After merging this change from v0.10 to v0.12, this tests suite was
broken because commits 5d2aef1 and
f4c8020 make SSL/TLS clients use a
default ciphers list that is not compatible with the SSLv2 protocol.

This change fixes two issues:
1) The cipher list that was setup for a given test was not passed
properly to the client.
2) When either or both of clients/servers were using SSLv2, tests were
expected to succeed when at least the server end was using SSLv2
compatible ciphers. Now, tests are expected to succeed only if
SSLv2 compatible ciphers are used on both ends.

Fixes nodejs#9020.
@trevnorris
Copy link

LGTM

@misterdjules
Copy link
Author

@trevnorris Thanks! Landed in 408bffe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants