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

Add a dummy bn_is_zero C dependency to wrap BN_is_zero #64

Merged
merged 1 commit into from
Oct 5, 2014

Conversation

reem
Copy link
Contributor

@reem reem commented Oct 5, 2014

This is necessary because on some architectures BN_is_zero
is a CPP macro, so trying to link against it in an extern "C"
block causes a linker error.

This also introduces a build command to Cargo to compile
the bn_is_zero wrapper.

This is necessary because on some architectures BN_is_zero
is a CPP macro, so trying to link against it in an `extern "C"`
block causes a linker error.

This also introduces a build command to Cargo to compile
the bn_is_zero wrapper.
@sfackler
Copy link
Owner

sfackler commented Oct 5, 2014

Will the compiler automatically link in the .o?

@reem
Copy link
Contributor Author

reem commented Oct 5, 2014

Cargo will automatically include anything that you put in the $OUT_DIR env-var that it sets.

@sfackler
Copy link
Owner

sfackler commented Oct 5, 2014

Man, OpenSSL's API is such a mess :(

Thanks!

sfackler added a commit that referenced this pull request Oct 5, 2014
Add a dummy bn_is_zero C dependency to wrap BN_is_zero
@sfackler sfackler merged commit c09ec83 into sfackler:master Oct 5, 2014
@reem
Copy link
Contributor Author

reem commented Oct 5, 2014

@sfackler Ya, this is extremely gross, but unfortunately necessary.

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