Skip to content

Commit

Permalink
Minor fixups
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#20765)
  • Loading branch information
hlandau authored and pull[bot] committed Jun 4, 2024
1 parent 98b0ad4 commit 1506566
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions include/internal/quic_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ struct quic_rxfc_st {
* and absolute maximum window sizes, respectively. Window size values are
* expressed in bytes and determine how much credit the RXFC extends to the peer
* to transmit more data at a time.
*
* If stream_count_mode is 1, this RXFC is for use tracking maximum stream count
* enforcement. In this case conn_rxfc must be NULL.
*/
int ossl_quic_rxfc_init(QUIC_RXFC *rxfc, QUIC_RXFC *conn_rxfc,
uint64_t initial_window_size,
Expand Down
2 changes: 1 addition & 1 deletion ssl/quic/quic_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# ifndef OPENSSL_NO_QUIC

/*
* QUIC stream SSL object (QCSO) type. This implements the API personality layer
* QUIC stream SSL object (QSSO) type. This implements the API personality layer
* for QSSO objects, wrapping the QUIC-native QUIC_STREAM object and tracking
* state required by the libssl API personality.
*/
Expand Down
2 changes: 1 addition & 1 deletion ssl/ssl_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -7384,7 +7384,7 @@ int SSL_attach_stream(SSL *conn, SSL *stream)

return ossl_quic_attach_stream(conn, stream);
#else
return NULL;
return 0;
#endif
}

Expand Down
5 changes: 2 additions & 3 deletions test/quic_multistream_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ static int helper_init(struct helper *h)

s_args.net_rbio = h->s_net_bio;
s_args.net_wbio = h->s_net_bio;
//s_args.now_cb = ...;

if (!TEST_ptr(h->s = ossl_quic_tserver_new(&s_args, certfile, keyfile)))
goto err;
Expand Down Expand Up @@ -849,7 +848,7 @@ static int run_script(const struct script_op *script)

case OPK_C_WRITE_FAIL:
{
uint64_t bytes_written = 0;
size_t bytes_written = 0;

if (!TEST_ptr(c_tgt))
goto out;
Expand All @@ -875,7 +874,7 @@ static int run_script(const struct script_op *script)

case OPK_C_READ_FAIL:
{
uint64_t bytes_read = 0;
size_t bytes_read = 0;
char buf[1];

if (!TEST_ptr(c_tgt))
Expand Down

0 comments on commit 1506566

Please sign in to comment.