|
Tor 0.4.9.3-alpha-dev
|
Contains circuit and connection identifier code for the whole HS subsystem. More...
Go to the source code of this file.
Functions | |
| hs_ident_circuit_t * | hs_ident_circuit_new (const ed25519_public_key_t *identity_pk) |
| void | hs_ident_circuit_free_ (hs_ident_circuit_t *ident) |
| hs_ident_circuit_t * | hs_ident_circuit_dup (const hs_ident_circuit_t *src) |
| hs_ident_dir_conn_t * | hs_ident_dir_conn_dup (const hs_ident_dir_conn_t *src) |
| void | hs_ident_dir_conn_free_ (hs_ident_dir_conn_t *ident) |
| hs_ident_dir_conn_t * | hs_ident_server_dir_conn_new (const ed25519_public_key_t *blinded_pk) |
| void | hs_ident_dir_conn_init (const ed25519_public_key_t *identity_pk, const ed25519_public_key_t *blinded_pk, hs_ident_dir_conn_t *ident) |
| hs_ident_edge_conn_t * | hs_ident_edge_conn_new (const ed25519_public_key_t *identity_pk) |
| void | hs_ident_edge_conn_free_ (hs_ident_edge_conn_t *ident) |
| int | hs_ident_intro_circ_is_valid (const hs_ident_circuit_t *ident) |
Contains circuit and connection identifier code for the whole HS subsystem.
Definition in file hs_ident.c.
| hs_ident_circuit_t * hs_ident_circuit_dup | ( | const hs_ident_circuit_t * | src | ) |
For a given circuit identifier src, return a newly allocated copy of it. This can't fail.
Definition at line 37 of file hs_ident.c.
Referenced by retry_service_rendezvous_point().
| void hs_ident_circuit_free_ | ( | hs_ident_circuit_t * | ident | ) |
Free the given circuit identifier.
Definition at line 25 of file hs_ident.c.
| hs_ident_circuit_t * hs_ident_circuit_new | ( | const ed25519_public_key_t * | identity_pk | ) |
Return a newly allocated circuit identifier. The given public key is copied identity_pk into the identifier.
Definition at line 16 of file hs_ident.c.
Referenced by circuit_get_open_circ_or_launch(), create_intro_circuit_identifier(), and create_rp_circuit_identifier().
| hs_ident_dir_conn_t * hs_ident_dir_conn_dup | ( | const hs_ident_dir_conn_t * | src | ) |
For a given directory connection identifier src, return a newly allocated copy of it. This can't fail.
Definition at line 47 of file hs_ident.c.
Referenced by directory_initiate_request().
| void hs_ident_dir_conn_free_ | ( | hs_ident_dir_conn_t * | ident | ) |
Free the given directory connection identifier.
Definition at line 56 of file hs_ident.c.
| void hs_ident_dir_conn_init | ( | const ed25519_public_key_t * | identity_pk, |
| const ed25519_public_key_t * | blinded_pk, | ||
| hs_ident_dir_conn_t * | ident | ||
| ) |
Initialized the allocated ident object with identity_pk and blinded_pk. None of them can be NULL since a valid directory connection identifier must have all fields set.
Definition at line 79 of file hs_ident.c.
Referenced by directory_launch_v3_desc_fetch(), and hs_service_upload_desc_to_dir().
| void hs_ident_edge_conn_free_ | ( | hs_ident_edge_conn_t * | ident | ) |
Free the given edge connection identifier.
Definition at line 103 of file hs_ident.c.
| hs_ident_edge_conn_t * hs_ident_edge_conn_new | ( | const ed25519_public_key_t * | identity_pk | ) |
Return a newly allocated edge connection identifier. The given public key identity_pk is copied into the identifier.
Definition at line 94 of file hs_ident.c.
Referenced by handle_hs_exit_conn().
| int hs_ident_intro_circ_is_valid | ( | const hs_ident_circuit_t * | ident | ) |
Return true if the given ident is valid for an introduction circuit.
Definition at line 114 of file hs_ident.c.
Referenced by intro_circ_is_ok().
| hs_ident_dir_conn_t * hs_ident_server_dir_conn_new | ( | const ed25519_public_key_t * | blinded_pk | ) |
Return a newly allocated HS directory connection identifier that is meant for the server side (HSDir). Only the blinded key is known by the HSDir.
Definition at line 68 of file hs_ident.c.
Referenced by handle_get_hs_descriptor_v3().