Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify protocol logic for Apache #264

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Simplify protocol logic for Apache #264

merged 1 commit into from
Oct 17, 2024

Conversation

janbrasna
Copy link
Collaborator

Folding two different SSLProtocol blocks into one, without any change to the logic in use or the final output.

Rationale

The only condition targeting Apache 2.3.16 is whether to explicitly exclude SSLv2 or not (as it is disabled by default from that point on), not worth maintaining as separate blocks with different formatting etc.

Any SSLv3 logic is removed as it is no longer present in any configs and is also only disabled completely.

Significant changes and points to review

Absolutely no impact to the actual output.

The 2.3.16 condition for explicit SSLv2 removal is just kept within the single block, SSLv3 removal is unconditional.

(Includes some indentation and whitespace control for better readability, but not as "neat" as before; however the deduplication is hopefully worth it.)

Testing

https://upd-apache-protocols--mozsslconf-dev.netlify.app/#server=apache&version=2.2.22
https://upd-apache-protocols--mozsslconf-dev.netlify.app/#server=apache&version=2.2.22&config=old
vs.
https://upd-apache-protocols--mozsslconf-dev.netlify.app/#server=apache&version=2.4.24
https://upd-apache-protocols--mozsslconf-dev.netlify.app/#server=apache&version=2.4.24&config=old
https://upd-apache-protocols--mozsslconf-dev.netlify.app/#server=apache&config=modern

@janbrasna janbrasna added usability Affordance, experience & UI woes P3 Priority: 3 labels Oct 17, 2024
@gstrauss
Copy link
Collaborator

(Includes some indentation and whitespace control for better readability, but not as "neat" as before; however the deduplication is hopefully worth it.)

Reducing template bloat is worthwhile.

@gstrauss gstrauss merged commit c2d962f into master Oct 17, 2024
3 checks passed
@gstrauss gstrauss deleted the upd/apache-protocols branch October 17, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Priority: 3 usability Affordance, experience & UI woes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants