Skip to content

Removes strlen() calls per SAN name in a cert-check for chained certificates#8428

Closed
HenrikHolst wants to merge 7 commits into
curl:masterfrom
HenrikHolst:patch-11
Closed

Removes strlen() calls per SAN name in a cert-check for chained certificates#8428
HenrikHolst wants to merge 7 commits into
curl:masterfrom
HenrikHolst:patch-11

Conversation

@HenrikHolst

Copy link
Copy Markdown
Contributor

Further to #8418 there is for chained certificates a strlen done on the hostname for each iteration of the loop through the chain. For e.g https://curl.se this leads to zero difference since the certificate used there is "sane" but for the https://google.com case which perhaps represents a worst case scenario we can reduce a further 108 calls to strlen.

@bagder bagder closed this in 65c6e37 Feb 13, 2022
@bagder

bagder commented Feb 13, 2022

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants