diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-08 16:56:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-08 16:59:25 -0500 |
commit | bc68eedd79286420f8dcab5fa4ed83401299c89c (patch) | |
tree | 84e128effdd94fa9b1f44d1bee2617be91b278f7 /src/trunnel/hs | |
parent | e1f00c5f8620f46f97ac58b2a1787852891c8981 (diff) | |
download | tor-bc68eedd79286420f8dcab5fa4ed83401299c89c.tar.gz tor-bc68eedd79286420f8dcab5fa4ed83401299c89c.zip |
Update to trunnel 1.5.1
Diffstat (limited to 'src/trunnel/hs')
-rw-r--r-- | src/trunnel/hs/cell_common.c | 8 | ||||
-rw-r--r-- | src/trunnel/hs/cell_common.h | 8 | ||||
-rw-r--r-- | src/trunnel/hs/cell_establish_intro.c | 8 | ||||
-rw-r--r-- | src/trunnel/hs/cell_establish_intro.h | 8 | ||||
-rw-r--r-- | src/trunnel/hs/cell_introduce1.c | 14 | ||||
-rw-r--r-- | src/trunnel/hs/cell_introduce1.h | 14 |
6 files changed, 30 insertions, 30 deletions
diff --git a/src/trunnel/hs/cell_common.c b/src/trunnel/hs/cell_common.c index c6c610d213..830f2260ee 100644 --- a/src/trunnel/hs/cell_common.c +++ b/src/trunnel/hs/cell_common.c @@ -1,4 +1,4 @@ -/* cell_common.c -- generated by Trunnel v1.5. +/* cell_common.c -- generated by Trunnel v1.5.1. * https://gitweb.torproject.org/trunnel.git * You probably shouldn't edit this file. */ @@ -58,7 +58,7 @@ cell_extension_fields_free(cell_extension_fields_t *obj) } uint8_t -cell_extension_fields_get_field_type(cell_extension_fields_t *inp) +cell_extension_fields_get_field_type(const cell_extension_fields_t *inp) { return inp->field_type; } @@ -69,7 +69,7 @@ cell_extension_fields_set_field_type(cell_extension_fields_t *inp, uint8_t val) return 0; } uint8_t -cell_extension_fields_get_field_len(cell_extension_fields_t *inp) +cell_extension_fields_get_field_len(const cell_extension_fields_t *inp) { return inp->field_len; } @@ -340,7 +340,7 @@ cell_extension_free(cell_extension_t *obj) } uint8_t -cell_extension_get_num(cell_extension_t *inp) +cell_extension_get_num(const cell_extension_t *inp) { return inp->num; } diff --git a/src/trunnel/hs/cell_common.h b/src/trunnel/hs/cell_common.h index 3c847f71e5..8999f7da40 100644 --- a/src/trunnel/hs/cell_common.h +++ b/src/trunnel/hs/cell_common.h @@ -1,4 +1,4 @@ -/* cell_common.h -- generated by by Trunnel v1.5. +/* cell_common.h -- generated by by Trunnel v1.5.1. * https://gitweb.torproject.org/trunnel.git * You probably shouldn't edit this file. */ @@ -64,7 +64,7 @@ int cell_extension_fields_clear_errors(cell_extension_fields_t *obj); /** Return the value of the field_type field of the * cell_extension_fields_t in 'inp' */ -uint8_t cell_extension_fields_get_field_type(cell_extension_fields_t *inp); +uint8_t cell_extension_fields_get_field_type(const cell_extension_fields_t *inp); /** Set the value of the field_type field of the * cell_extension_fields_t in 'inp' to 'val'. Return 0 on success; * return -1 and set the error code on 'inp' on failure. @@ -73,7 +73,7 @@ int cell_extension_fields_set_field_type(cell_extension_fields_t *inp, uint8_t v /** Return the value of the field_len field of the * cell_extension_fields_t in 'inp' */ -uint8_t cell_extension_fields_get_field_len(cell_extension_fields_t *inp); +uint8_t cell_extension_fields_get_field_len(const cell_extension_fields_t *inp); /** Set the value of the field_len field of the * cell_extension_fields_t in 'inp' to 'val'. Return 0 on success; * return -1 and set the error code on 'inp' on failure. @@ -150,7 +150,7 @@ const char *cell_extension_check(const cell_extension_t *obj); int cell_extension_clear_errors(cell_extension_t *obj); /** Return the value of the num field of the cell_extension_t in 'inp' */ -uint8_t cell_extension_get_num(cell_extension_t *inp); +uint8_t cell_extension_get_num(const cell_extension_t *inp); /** Set the value of the num field of the cell_extension_t in 'inp' to * 'val'. Return 0 on success; return -1 and set the error code on * 'inp' on failure. diff --git a/src/trunnel/hs/cell_establish_intro.c b/src/trunnel/hs/cell_establish_intro.c index f3a3f53e91..02094fe2bf 100644 --- a/src/trunnel/hs/cell_establish_intro.c +++ b/src/trunnel/hs/cell_establish_intro.c @@ -1,4 +1,4 @@ -/* cell_establish_intro.c -- generated by Trunnel v1.5. +/* cell_establish_intro.c -- generated by Trunnel v1.5.1. * https://gitweb.torproject.org/trunnel.git * You probably shouldn't edit this file. */ @@ -75,7 +75,7 @@ hs_cell_establish_intro_get_start_cell(const hs_cell_establish_intro_t *inp) return inp->start_cell; } uint8_t -hs_cell_establish_intro_get_auth_key_type(hs_cell_establish_intro_t *inp) +hs_cell_establish_intro_get_auth_key_type(const hs_cell_establish_intro_t *inp) { return inp->auth_key_type; } @@ -90,7 +90,7 @@ hs_cell_establish_intro_set_auth_key_type(hs_cell_establish_intro_t *inp, uint8_ return 0; } uint16_t -hs_cell_establish_intro_get_auth_key_len(hs_cell_establish_intro_t *inp) +hs_cell_establish_intro_get_auth_key_len(const hs_cell_establish_intro_t *inp) { return inp->auth_key_len; } @@ -232,7 +232,7 @@ hs_cell_establish_intro_getconstarray_handshake_mac(const hs_cell_establish_intr return (const uint8_t *)hs_cell_establish_intro_getarray_handshake_mac((hs_cell_establish_intro_t*)inp); } uint16_t -hs_cell_establish_intro_get_sig_len(hs_cell_establish_intro_t *inp) +hs_cell_establish_intro_get_sig_len(const hs_cell_establish_intro_t *inp) { return inp->sig_len; } diff --git a/src/trunnel/hs/cell_establish_intro.h b/src/trunnel/hs/cell_establish_intro.h index 9a066b1804..a9166f10d8 100644 --- a/src/trunnel/hs/cell_establish_intro.h +++ b/src/trunnel/hs/cell_establish_intro.h @@ -1,4 +1,4 @@ -/* cell_establish_intro.h -- generated by by Trunnel v1.5. +/* cell_establish_intro.h -- generated by by Trunnel v1.5.1. * https://gitweb.torproject.org/trunnel.git * You probably shouldn't edit this file. */ @@ -75,7 +75,7 @@ const uint8_t * hs_cell_establish_intro_get_start_cell(const hs_cell_establish_i /** Return the value of the auth_key_type field of the * hs_cell_establish_intro_t in 'inp' */ -uint8_t hs_cell_establish_intro_get_auth_key_type(hs_cell_establish_intro_t *inp); +uint8_t hs_cell_establish_intro_get_auth_key_type(const hs_cell_establish_intro_t *inp); /** Set the value of the auth_key_type field of the * hs_cell_establish_intro_t in 'inp' to 'val'. Return 0 on success; * return -1 and set the error code on 'inp' on failure. @@ -84,7 +84,7 @@ int hs_cell_establish_intro_set_auth_key_type(hs_cell_establish_intro_t *inp, ui /** Return the value of the auth_key_len field of the * hs_cell_establish_intro_t in 'inp' */ -uint16_t hs_cell_establish_intro_get_auth_key_len(hs_cell_establish_intro_t *inp); +uint16_t hs_cell_establish_intro_get_auth_key_len(const hs_cell_establish_intro_t *inp); /** Set the value of the auth_key_len field of the * hs_cell_establish_intro_t in 'inp' to 'val'. Return 0 on success; * return -1 and set the error code on 'inp' on failure. @@ -173,7 +173,7 @@ const uint8_t * hs_cell_establish_intro_getconstarray_handshake_mac(const hs_ce /** Return the value of the sig_len field of the * hs_cell_establish_intro_t in 'inp' */ -uint16_t hs_cell_establish_intro_get_sig_len(hs_cell_establish_intro_t *inp); +uint16_t hs_cell_establish_intro_get_sig_len(const hs_cell_establish_intro_t *inp); /** Set the value of the sig_len field of the * hs_cell_establish_intro_t in 'inp' to 'val'. Return 0 on success; * return -1 and set the error code on 'inp' on failure. diff --git a/src/trunnel/hs/cell_introduce1.c b/src/trunnel/hs/cell_introduce1.c index 51f567655e..5922a086dc 100644 --- a/src/trunnel/hs/cell_introduce1.c +++ b/src/trunnel/hs/cell_introduce1.c @@ -1,4 +1,4 @@ -/* cell_introduce1.c -- generated by Trunnel v1.5. +/* cell_introduce1.c -- generated by Trunnel v1.5.1. * https://gitweb.torproject.org/trunnel.git * You probably shouldn't edit this file. */ @@ -114,7 +114,7 @@ hs_cell_introduce1_getconstarray_legacy_key_id(const hs_cell_introduce1_t *inp) return (const uint8_t *)hs_cell_introduce1_getarray_legacy_key_id((hs_cell_introduce1_t*)inp); } uint8_t -hs_cell_introduce1_get_auth_key_type(hs_cell_introduce1_t *inp) +hs_cell_introduce1_get_auth_key_type(const hs_cell_introduce1_t *inp) { return inp->auth_key_type; } @@ -129,7 +129,7 @@ hs_cell_introduce1_set_auth_key_type(hs_cell_introduce1_t *inp, uint8_t val) return 0; } uint16_t -hs_cell_introduce1_get_auth_key_len(hs_cell_introduce1_t *inp) +hs_cell_introduce1_get_auth_key_len(const hs_cell_introduce1_t *inp) { return inp->auth_key_len; } @@ -543,7 +543,7 @@ hs_cell_introduce_ack_free(hs_cell_introduce_ack_t *obj) } uint16_t -hs_cell_introduce_ack_get_status(hs_cell_introduce_ack_t *inp) +hs_cell_introduce_ack_get_status(const hs_cell_introduce_ack_t *inp) { return inp->status; } @@ -830,7 +830,7 @@ hs_cell_introduce_encrypted_set0_extensions(hs_cell_introduce_encrypted_t *inp, return 0; } uint8_t -hs_cell_introduce_encrypted_get_onion_key_type(hs_cell_introduce_encrypted_t *inp) +hs_cell_introduce_encrypted_get_onion_key_type(const hs_cell_introduce_encrypted_t *inp) { return inp->onion_key_type; } @@ -845,7 +845,7 @@ hs_cell_introduce_encrypted_set_onion_key_type(hs_cell_introduce_encrypted_t *in return 0; } uint16_t -hs_cell_introduce_encrypted_get_onion_key_len(hs_cell_introduce_encrypted_t *inp) +hs_cell_introduce_encrypted_get_onion_key_len(const hs_cell_introduce_encrypted_t *inp) { return inp->onion_key_len; } @@ -923,7 +923,7 @@ hs_cell_introduce_encrypted_setlen_onion_key(hs_cell_introduce_encrypted_t *inp, return -1; } uint8_t -hs_cell_introduce_encrypted_get_nspec(hs_cell_introduce_encrypted_t *inp) +hs_cell_introduce_encrypted_get_nspec(const hs_cell_introduce_encrypted_t *inp) { return inp->nspec; } diff --git a/src/trunnel/hs/cell_introduce1.h b/src/trunnel/hs/cell_introduce1.h index 09ee0fb4b3..ccd2cda904 100644 --- a/src/trunnel/hs/cell_introduce1.h +++ b/src/trunnel/hs/cell_introduce1.h @@ -1,4 +1,4 @@ -/* cell_introduce1.h -- generated by by Trunnel v1.5. +/* cell_introduce1.h -- generated by by Trunnel v1.5.1. * https://gitweb.torproject.org/trunnel.git * You probably shouldn't edit this file. */ @@ -110,7 +110,7 @@ const uint8_t * hs_cell_introduce1_getconstarray_legacy_key_id(const hs_cell_in /** Return the value of the auth_key_type field of the * hs_cell_introduce1_t in 'inp' */ -uint8_t hs_cell_introduce1_get_auth_key_type(hs_cell_introduce1_t *inp); +uint8_t hs_cell_introduce1_get_auth_key_type(const hs_cell_introduce1_t *inp); /** Set the value of the auth_key_type field of the * hs_cell_introduce1_t in 'inp' to 'val'. Return 0 on success; return * -1 and set the error code on 'inp' on failure. @@ -119,7 +119,7 @@ int hs_cell_introduce1_set_auth_key_type(hs_cell_introduce1_t *inp, uint8_t val) /** Return the value of the auth_key_len field of the * hs_cell_introduce1_t in 'inp' */ -uint16_t hs_cell_introduce1_get_auth_key_len(hs_cell_introduce1_t *inp); +uint16_t hs_cell_introduce1_get_auth_key_len(const hs_cell_introduce1_t *inp); /** Set the value of the auth_key_len field of the * hs_cell_introduce1_t in 'inp' to 'val'. Return 0 on success; return * -1 and set the error code on 'inp' on failure. @@ -250,7 +250,7 @@ int hs_cell_introduce_ack_clear_errors(hs_cell_introduce_ack_t *obj); /** Return the value of the status field of the * hs_cell_introduce_ack_t in 'inp' */ -uint16_t hs_cell_introduce_ack_get_status(hs_cell_introduce_ack_t *inp); +uint16_t hs_cell_introduce_ack_get_status(const hs_cell_introduce_ack_t *inp); /** Set the value of the status field of the hs_cell_introduce_ack_t * in 'inp' to 'val'. Return 0 on success; return -1 and set the error * code on 'inp' on failure. @@ -358,7 +358,7 @@ int hs_cell_introduce_encrypted_set0_extensions(hs_cell_introduce_encrypted_t *i /** Return the value of the onion_key_type field of the * hs_cell_introduce_encrypted_t in 'inp' */ -uint8_t hs_cell_introduce_encrypted_get_onion_key_type(hs_cell_introduce_encrypted_t *inp); +uint8_t hs_cell_introduce_encrypted_get_onion_key_type(const hs_cell_introduce_encrypted_t *inp); /** Set the value of the onion_key_type field of the * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on * success; return -1 and set the error code on 'inp' on failure. @@ -367,7 +367,7 @@ int hs_cell_introduce_encrypted_set_onion_key_type(hs_cell_introduce_encrypted_t /** Return the value of the onion_key_len field of the * hs_cell_introduce_encrypted_t in 'inp' */ -uint16_t hs_cell_introduce_encrypted_get_onion_key_len(hs_cell_introduce_encrypted_t *inp); +uint16_t hs_cell_introduce_encrypted_get_onion_key_len(const hs_cell_introduce_encrypted_t *inp); /** Set the value of the onion_key_len field of the * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on * success; return -1 and set the error code on 'inp' on failure. @@ -410,7 +410,7 @@ int hs_cell_introduce_encrypted_setlen_onion_key(hs_cell_introduce_encrypted_t * /** Return the value of the nspec field of the * hs_cell_introduce_encrypted_t in 'inp' */ -uint8_t hs_cell_introduce_encrypted_get_nspec(hs_cell_introduce_encrypted_t *inp); +uint8_t hs_cell_introduce_encrypted_get_nspec(const hs_cell_introduce_encrypted_t *inp); /** Set the value of the nspec field of the * hs_cell_introduce_encrypted_t in 'inp' to 'val'. Return 0 on * success; return -1 and set the error code on 'inp' on failure. |