Skip to content

Commit

Permalink
Bump for uSockets#231
Browse files Browse the repository at this point in the history
  • Loading branch information
partyblob committed Oct 23, 2024
1 parent a748c71 commit 3b301b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ namespace uWS {

/* This one matches us_socket_context_options_t but has default values */
struct SocketContextOptions {
const char *key_file_name = nullptr;
const char *cert_file_name = nullptr;
union{ const char *key_file_name = nullptr, *key_file; };
union{ const char *cert_file_name = nullptr, *cert_file; };
const char *passphrase = nullptr;
const char *dh_params_file_name = nullptr;
const char *ca_file_name = nullptr;
union{ const char *dh_params_file_name = nullptr, *dh_params_file; };
union{ const char *ca_file_name = nullptr, *ca_file; };
const char *ssl_ciphers = nullptr;
int ssl_prefer_low_memory_usage = 0;
char ssl_prefer_low_memory_usage = 0;
char key_data_inline = 0;
char cert_data_inline = 0;
char dh_params_data_inline = 0;

/* Conversion operator used internally */
operator struct us_socket_context_options_t() const {
Expand Down
2 changes: 2 additions & 0 deletions src/Http3App.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ namespace uWS {
h3options.key_file_name = strdup(options.key_file_name);
h3options.cert_file_name = strdup(options.cert_file_name);
h3options.passphrase = strdup(options.passphrase);
h3options.key_data_inline = options.key_data_inline;
h3options.cert_data_inline = options.cert_data_inline;

/* Create the http3 context */
http3Context = Http3Context::create((us_loop_t *)Loop::get(), h3options);
Expand Down

0 comments on commit 3b301b3

Please sign in to comment.