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

setting scope (and attributes) of validate_hostname #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kazuho
Copy link

@kazuho kazuho commented Apr 21, 2016

Thank you for providing this useful library.

We would like to use it at part of our web server (ref: h2o/h2o#875), but we do not like having validate_hostname as an extern function, since users of the web server as a library may have a function with the same name already defined.

To accommodate the issue, this PR adds a macro named OPENSSL_HOSTNAME_VALIDATION_LINKAGE that can be used to set the scope as well as other attributes to the function. The default is set to extern, so it does not break existing code.

FWIW, we are going to use it like h2o/h2o@d08e9bc.

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.

1 participant