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

tls: remove ifdef from public API #580

Merged
merged 1 commit into from
Oct 18, 2022
Merged

tls: remove ifdef from public API #580

merged 1 commit into from
Oct 18, 2022

Conversation

alfredh
Copy link
Contributor

@alfredh alfredh commented Oct 16, 2022

this one is for discussion ...

in general we should try to avoid ifdef in public header files.
The API in re_tls.h should be a generic TLS api, and should not expose any
implementation details (such as OpenSSL).

It is possible to add support for other TLS backends, such as:

  • macOS tls stack
  • windows tls stack
  • mbed TLS
  • ... etc ...

look at the CURL source code for ideas and inspiration

@sreimers sreimers merged commit 4f13228 into main Oct 18, 2022
@sreimers sreimers deleted the tls_api_no_ifdef branch October 18, 2022 04:28
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