Skip to content

Commit

Permalink
fix(usockets): allow ssl negotiations
Browse files Browse the repository at this point in the history
  • Loading branch information
lithdew committed Apr 11, 2024
1 parent 57208cb commit e2170f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bun-usockets/src/crypto/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ struct us_internal_ssl_socket_t *ssl_on_open(struct us_internal_ssl_socket_t *s,
s->received_ssl_shutdown = 0;

SSL_set_bio(s->ssl, loop_ssl_data->shared_rbio, loop_ssl_data->shared_wbio);
SSL_set_renegotiate_mode(s->ssl, ssl_renegotiate_freely);

BIO_up_ref(loop_ssl_data->shared_rbio);
BIO_up_ref(loop_ssl_data->shared_wbio);
Expand Down

0 comments on commit e2170f3

Please sign in to comment.