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

Use a bunch of BoringSSL accessors. #856

Merged
merged 1 commit into from Jun 20, 2020
Merged

Conversation

@davidben
Copy link
Contributor

davidben commented Jun 20, 2020

We're starting to chew through the blockers on opaquifying a few more
types. A lot of this is going to take fixes in BoringSSL (I skipped a
few places where BoringSSL was missing an accessor or we needed
const-correctness), but start by switching the easy ones.

*signature = x509->signature;
static const ASN1_BIT_STRING* get_X509_signature(X509* x509) {
const ASN1_BIT_STRING* signature;
X509_get0_signature(&signature, nullptr, x509);

This comment has been minimized.

@davidben

davidben Jun 20, 2020 Author Contributor

(I don't know why X509_get0_signature and X509_CRL_get0_signature have different argument orders. OpenSSL...)

We're starting to chew through the blockers on opaquifying a few more
types. A lot of this is going to take fixes in BoringSSL (I skipped a
few places where BoringSSL was missing an accessor or we needed
const-correctness), but start by switching the easy ones.
@davidben davidben force-pushed the davidben:various-accessors branch from 1cb8d10 to b5fc93b Jun 20, 2020
@davidben
Copy link
Contributor Author

davidben commented Jun 20, 2020

Ugh. Getting some extremely flaky behavior from gradle (seems the build has some caching bugs?), which is making local testing difficult. Might have to do this by CI.

@davidben
Copy link
Contributor Author

davidben commented Jun 20, 2020

Okay, that looks a lot better. Windows is unhappy but it looks unrelated. (Although it looks like it may be BoringSSL's fault too. I'll have to take a look at that later.)

@prbprbprb
Copy link
Collaborator

prbprbprb commented Jun 20, 2020

Thanks!

Ugh. Getting some extremely flaky behavior from gradle (seems the build has some caching bugs?)

Yeah, I noticed something similar the other day but wasn't sure if it was a Gradle bug, our misconfiguration, or I was just holding it wrong.

Okay, that looks a lot better. Windows is unhappy but it looks unrelated.

Yeah, the CI toolchain seems to have updated so now this is an error on Windows:

..\decrepit\bio\base64_bio.c(525): error C2220: the following warning is treated as an error
..\decrepit\bio\base64_bio.c(525): warning C4065: switch statement contains 'default' but no 'case' labels

The path of least resistance might be to refactor that but I didn't have time to send you a CL yet.

@prbprbprb prbprbprb merged commit 571dbaf into google:master Jun 20, 2020
6 of 7 checks passed
6 of 7 checks passed
boringssl_clone
Details
build (ubuntu-latest) build (ubuntu-latest)
Details
build (macos-latest) build (macos-latest)
Details
build (windows-latest) build (windows-latest)
Details
uberjar
Details
cla/google All necessary CLAs are signed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@prbprbprb
Copy link
Collaborator

prbprbprb commented Jun 22, 2020

The path of least resistance might be to refactor that but I didn't have time to send you a CL yet.

FYI: https://boringssl-review.googlesource.com/c/boringssl/+/41844

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.