Browse Source

whitespace fixes

Nick Mathewson 7 years ago
parent
commit
85a17ee2e7
2 changed files with 11 additions and 5 deletions
  1. 1 0
      src/or/hs_intropoint.c
  2. 10 5
      src/test/test_hs_intropoint.c

+ 1 - 0
src/or/hs_intropoint.c

@@ -592,3 +592,4 @@ hs_intro_received_introduce1(or_circuit_t *circ, const uint8_t *request,
   circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_TORPROTOCOL);
   return -1;
 }
+

+ 10 - 5
src/test/test_hs_intropoint.c

@@ -44,7 +44,8 @@ mock_send_intro_established_cell(or_circuit_t *circ)
 static int
 mock_relay_send_command_from_edge(streamid_t stream_id, circuit_t *circ,
                                   uint8_t relay_command, const char *payload,
-                                  size_t payload_len, crypt_path_t *cpath_layer,
+                                  size_t payload_len,
+                                  crypt_path_t *cpath_layer,
                                   const char *filename, int lineno)
 {
   (void) stream_id;
@@ -763,12 +764,14 @@ test_received_introduce1_handling(void *arg)
     size_t request_len = hs_cell_introduce1_encoded_len(cell);
     tt_size_op(request_len, OP_GT, 0);
     request = tor_malloc_zero(request_len);
-    ssize_t encoded_len = hs_cell_introduce1_encode(request, request_len, cell);
+    ssize_t encoded_len =
+      hs_cell_introduce1_encode(request, request_len, cell);
     tt_size_op(encoded_len, OP_GT, 0);
 
     circ = helper_create_intro_circuit();
     or_circuit_t *service_circ = helper_create_intro_circuit();
-    circuit_change_purpose(TO_CIRCUIT(service_circ), CIRCUIT_PURPOSE_INTRO_POINT);
+    circuit_change_purpose(TO_CIRCUIT(service_circ),
+                           CIRCUIT_PURPOSE_INTRO_POINT);
     /* Register the circuit in the map for the auth key of the cell. */
     ed25519_public_key_t auth_key;
     const uint8_t *cell_auth_key =
@@ -792,12 +795,14 @@ test_received_introduce1_handling(void *arg)
     size_t request_len = hs_cell_introduce1_encoded_len(cell) + 256;
     tt_size_op(request_len, OP_GT, 0);
     request = tor_malloc_zero(request_len + 256);
-    ssize_t encoded_len = hs_cell_introduce1_encode(request, request_len, cell);
+    ssize_t encoded_len =
+      hs_cell_introduce1_encode(request, request_len, cell);
     tt_size_op(encoded_len, OP_GT, 0);
 
     circ = helper_create_intro_circuit();
     or_circuit_t *service_circ = helper_create_intro_circuit();
-    circuit_change_purpose(TO_CIRCUIT(service_circ), CIRCUIT_PURPOSE_INTRO_POINT);
+    circuit_change_purpose(TO_CIRCUIT(service_circ),
+                           CIRCUIT_PURPOSE_INTRO_POINT);
     /* Register the circuit in the map for the auth key of the cell. */
     uint8_t token[REND_TOKEN_LEN];
     memcpy(token, legacy_key_id, sizeof(token));