From 176ad729d9b1ddeccdb3e721b5ab1bf64646223f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 21 Nov 2017 09:37:47 -0500 Subject: Change the free macro convention in the rest of src/or/*.h --- src/or/onion_fast.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/or/onion_fast.h') diff --git a/src/or/onion_fast.h b/src/or/onion_fast.h index 3a5aefea3f..7d110fd759 100644 --- a/src/or/onion_fast.h +++ b/src/or/onion_fast.h @@ -19,7 +19,9 @@ typedef struct fast_handshake_state_t { uint8_t state[DIGEST_LEN]; } fast_handshake_state_t; -void fast_handshake_state_free(fast_handshake_state_t *victim); +void fast_handshake_state_free_(fast_handshake_state_t *victim); +#define fast_handshake_state_free(st) \ + FREE_AND_NULL(fast_handshake_state, (st)) int fast_onionskin_create(fast_handshake_state_t **handshake_state_out, uint8_t *handshake_out); -- cgit v1.2.3-54-g00ecf