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

Remove pthreads and use C++11 mutexes #18

Merged
merged 2 commits into from
Dec 27, 2016
Merged

Conversation

kruton
Copy link
Contributor

@kruton kruton commented Dec 23, 2016

There was also a lot of OpenSSL compatibility stuff hanging around that
was totally unneeded calls, so remove that as well.

There was also a lot of OpenSSL compatibility stuff hanging around that
was totally unneeded calls, so remove that as well.
Copy link
Contributor

@davidben davidben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with the caveat that I'm not very familiar with C++11's threading bits. I think most of our projects ban it, but it seems largely because they all have existing threading libraries.

If it works for all places Conscrypt is to be embedded, it's probably a good idea.

{
SSL_load_error_strings();
ERR_load_crypto_strings();
SSL_library_init();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (SSL_library_init, which just calls CRYPTO_library_init) isn't quiiiite a no-op in an BORINGSSL_NO_STATIC_INITIALIZER build. That said, Chromium is the only thing that builds in that way because it's allergic to static initializers, so it's probably fine to omit it? Your call.

@kruton kruton closed this Dec 23, 2016
@kruton kruton reopened this Dec 23, 2016
@kruton
Copy link
Contributor Author

kruton commented Dec 23, 2016

I restored the CRYPTO_library_init call in case someone compiles BoringSSL that way.

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

Successfully merging this pull request may close these issues.

2 participants