-
Notifications
You must be signed in to change notification settings - Fork 476
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
Better separate internal and public APIs #1648
Comments
We do have our common symmetric code in the public headers in CMakeLists. On the one hand that might be a mistake, although if memory serves we might have done it so that the test programs could access those functions? But maybe there's a way to do it so that the test programs can access them but they're still not installed for users. |
That should be possible tweaking the |
Here's an idea: what about building an I tinkered with this a little on the branch In particular, I think it provides an elegant way of dealing with this problem for the 100-KAT test: #1560 (comment) |
Sounds like a good solution, thanks Spencer! |
We have some common code which is not intended for library users but for which
.h
files exist (for example, SHA2 and SHA3). These headers are documented as not being part of the public API, but are still placed in the systeminclude
directory upon install (at least on my machine running x86_64 / Linux). We ought to fix this so that only the truly public headers are installed. On the other hand, we would like this code to be available to not only the implementations insrc
but also the programs intests
. It seems to me that a good solution would be to separate some sort of internal API (probably via tweaking the CMake configuration) so that our implementations of SHA2 / SHA3 / etc can be made available to select test programs but not users of the library in general.The text was updated successfully, but these errors were encountered: