diff options
author | 2023-09-14 21:26:37 -0700 | |
---|---|---|
committer | 2023-09-14 21:26:37 -0700 | |
commit | ced69d38180e963da1206f9932db76666cec9f72 (patch) | |
tree | a4c4462ff8747adc7d092891b1c299dfbb0ecc4a /packages/bun-usockets/src/context.c | |
parent | b262b0153a2d9667fcb47a970e8027d3b54f8a0a (diff) | |
download | bun-ced69d38180e963da1206f9932db76666cec9f72.tar.gz bun-ced69d38180e963da1206f9932db76666cec9f72.tar.zst bun-ced69d38180e963da1206f9932db76666cec9f72.zip |
async-ify all node:fs functions (#5360)
* async all node:fs functions
* draw the rest of the owl
* LLVM & Clang 16
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'packages/bun-usockets/src/context.c')
-rw-r--r-- | packages/bun-usockets/src/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/bun-usockets/src/context.c b/packages/bun-usockets/src/context.c index a4d243e85..9e0dd5356 100644 --- a/packages/bun-usockets/src/context.c +++ b/packages/bun-usockets/src/context.c @@ -29,6 +29,7 @@ int default_is_low_prio_handler(struct us_socket_t *s) { unsigned short us_socket_context_timestamp(int ssl, struct us_socket_context_t *context) { return context->timestamp; } +int us_internal_raw_root_certs(struct us_cert_string_t** out); int us_raw_root_certs(struct us_cert_string_t**out){ return us_internal_raw_root_certs(out); } @@ -568,7 +569,7 @@ void *us_socket_context_ext(int ssl, struct us_socket_context_t *context) { void us_socket_context_on_handshake(int ssl, struct us_socket_context_t *context, void (*on_handshake)(struct us_socket_context_t *, int success, struct us_bun_verify_error_t verify_error, void* custom_data), void* custom_data) { #ifndef LIBUS_NO_SSL if (ssl) { - us_internal_on_ssl_handshake((struct us_internal_ssl_socket_context_t *) context, on_handshake, custom_data); + us_internal_on_ssl_handshake((struct us_internal_ssl_socket_context_t *) context, (void (*)(struct us_internal_ssl_socket_t *, int success, struct us_bun_verify_error_t verify_error, void* custom_data))on_handshake, custom_data); return; } #endif |