-
Notifications
You must be signed in to change notification settings - Fork 266
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
us_update_socket_context() and ability to specify inline key/cert #231
base: master
Are you sure you want to change the base?
Conversation
Added fixes for #211 |
Update examples
Added partial solution to #29 via
struct addrinfo *us_get_addr(const char* host, int port);
void us_free_addr(struct addrinfo *addr);
struct us_socket_t *us_socket_context_connect_addr(int ssl, struct us_socket_context_t *context, const struct addrinfo *host, const char *source_host, int options, int socket_ext_size); Note that dependencies need not include headers for |
No way I can merge this as one MR, you need to separate it into multiple smaller Mrs with clear separation of concern. Otherwise, I'm positive 👍 |
Yeah I didn't realise making commits after a PR updates the PR, I'll separate into branches when I get home |
This pull request adds the ability to reload
us_socket_context_options_t
for a socket context viarather than by workarounds like add_server_name (which rely on SNI callbacks and do not work for situations like wildcard or shared certificates)
As well as the ability to specify certificate, private key, CA and dh-params as raw data rather than file paths
which is available via the new us_socket_context_options_t interface