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

Reverse the order of insertion for SChannel certinfo #4519

Closed
wants to merge 1 commit into from
Closed

Reverse the order of insertion for SChannel certinfo #4519

wants to merge 1 commit into from

Conversation

RoguePointer80
Copy link

Related issue: #4518

This PR will reverse the order of insertion of certificates when certinfo is requested and using SChannel backend. This is to make the order consistent with OpenSSL, that is to have the peer certificate first instead of last.

The line with (args->idx)++ could probably be merged into int insert_index = (args->certs_count - 1) - (args->idx); , but I believe saving one line of code is not worth reducing the readability of it.

@bagder
Copy link
Member

bagder commented Oct 23, 2019

Don't be alarmed by the red CI build(s), that's just due to flaky/bad environments and not because of any flaw in your PR. Ignore them.

@bagder bagder closed this in 8986df8 Oct 24, 2019
@bagder
Copy link
Member

bagder commented Oct 24, 2019

Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants