@@ -112,12 +112,12 @@ static void test_basic(void)
112112
113113 // Sending the handshake
114114 ck_assert_msg (net_send (ns , logger , sock , handshake , TCP_CLIENT_HANDSHAKE_SIZE - 1 ,
115- & localhost ) == TCP_CLIENT_HANDSHAKE_SIZE - 1 ,
115+ & localhost , nullptr ) == TCP_CLIENT_HANDSHAKE_SIZE - 1 ,
116116 "An attempt to send the initial handshake minus last byte failed." );
117117
118118 do_tcp_server_delay (tcp_s , mono_time , 50 );
119119
120- ck_assert_msg (net_send (ns , logger , sock , handshake + (TCP_CLIENT_HANDSHAKE_SIZE - 1 ), 1 , & localhost ) == 1 ,
120+ ck_assert_msg (net_send (ns , logger , sock , handshake + (TCP_CLIENT_HANDSHAKE_SIZE - 1 ), 1 , & localhost , nullptr ) == 1 ,
121121 "The attempt to send the last byte of handshake failed." );
122122
123123 free (handshake );
@@ -156,7 +156,7 @@ static void test_basic(void)
156156 msg_length = sizeof (r_req ) - i ;
157157 }
158158
159- ck_assert_msg (net_send (ns , logger , sock , r_req + i , msg_length , & localhost ) == msg_length ,
159+ ck_assert_msg (net_send (ns , logger , sock , r_req + i , msg_length , & localhost , nullptr ) == msg_length ,
160160 "Failed to send request after completing the handshake." );
161161 i += msg_length ;
162162
@@ -242,12 +242,12 @@ static struct sec_TCP_con *new_tcp_con(const Logger *logger, const Memory *mem,
242242 "Failed to encrypt the outgoing handshake." );
243243
244244 ck_assert_msg (net_send (ns , logger , sock , handshake , TCP_CLIENT_HANDSHAKE_SIZE - 1 ,
245- & localhost ) == TCP_CLIENT_HANDSHAKE_SIZE - 1 ,
245+ & localhost , nullptr ) == TCP_CLIENT_HANDSHAKE_SIZE - 1 ,
246246 "Failed to send the first portion of the handshake to the TCP relay server." );
247247
248248 do_tcp_server_delay (tcp_s , mono_time , 50 );
249249
250- ck_assert_msg (net_send (ns , logger , sock , handshake + (TCP_CLIENT_HANDSHAKE_SIZE - 1 ), 1 , & localhost ) == 1 ,
250+ ck_assert_msg (net_send (ns , logger , sock , handshake + (TCP_CLIENT_HANDSHAKE_SIZE - 1 ), 1 , & localhost , nullptr ) == 1 ,
251251 "Failed to send last byte of handshake." );
252252
253253 do_tcp_server_delay (tcp_s , mono_time , 50 );
@@ -291,7 +291,7 @@ static int write_packet_tcp_test_connection(const Logger *logger, struct sec_TCP
291291 localhost .ip = get_loopback ();
292292 localhost .port = 0 ;
293293
294- ck_assert_msg (net_send (con -> ns , logger , con -> sock , packet , packet_size , & localhost ) == packet_size ,
294+ ck_assert_msg (net_send (con -> ns , logger , con -> sock , packet , packet_size , & localhost , nullptr ) == packet_size ,
295295 "Failed to send a packet." );
296296 return 0 ;
297297}
@@ -535,7 +535,7 @@ static void test_client(void)
535535 ip_port_tcp_s .port = net_htons (ports [random_u32 (rng ) % NUM_PORTS ]);
536536 ip_port_tcp_s .ip = get_loopback ();
537537
538- TCP_Client_Connection * conn = new_tcp_connection (logger , mem , mono_time , rng , ns , & ip_port_tcp_s , self_public_key , f_public_key , f_secret_key , nullptr );
538+ TCP_Client_Connection * conn = new_tcp_connection (logger , mem , mono_time , rng , ns , & ip_port_tcp_s , self_public_key , f_public_key , f_secret_key , nullptr , nullptr );
539539 ck_assert_msg (conn != nullptr , "Failed to create a TCP client connection." );
540540 // TCP sockets might need a moment before they can be written to.
541541 c_sleep (50 );
@@ -572,7 +572,7 @@ static void test_client(void)
572572 crypto_new_keypair (rng , f2_public_key , f2_secret_key );
573573 ip_port_tcp_s .port = net_htons (ports [random_u32 (rng ) % NUM_PORTS ]);
574574 TCP_Client_Connection * conn2 = new_tcp_connection (logger , mem , mono_time , rng , ns , & ip_port_tcp_s , self_public_key , f2_public_key ,
575- f2_secret_key , nullptr );
575+ f2_secret_key , nullptr , nullptr );
576576 ck_assert_msg (conn2 != nullptr , "Failed to create a second TCP client connection." );
577577 c_sleep (50 );
578578
@@ -670,7 +670,7 @@ static void test_client_invalid(void)
670670 ip_port_tcp_s .port = net_htons (ports [random_u32 (rng ) % NUM_PORTS ]);
671671 ip_port_tcp_s .ip = get_loopback ();
672672 TCP_Client_Connection * conn = new_tcp_connection (logger , mem , mono_time , rng , ns , & ip_port_tcp_s ,
673- self_public_key , f_public_key , f_secret_key , nullptr );
673+ self_public_key , f_public_key , f_secret_key , nullptr , nullptr );
674674 ck_assert_msg (conn != nullptr , "Failed to create a TCP client connection." );
675675
676676 // Run the client's main loop but not the server.
0 commit comments