|
Tor 0.4.9.3-alpha-dev
|
#include <torcert.h>
Data Fields | |
| ed25519_public_key_t | signed_key |
| ed25519_public_key_t | signing_key |
| time_t | valid_until |
| uint8_t * | encoded |
| size_t | encoded_len |
| uint8_t | cert_type |
| unsigned | signing_key_included: 1 |
| unsigned | sig_bad: 1 |
| unsigned | sig_ok: 1 |
| unsigned | cert_expired: 1 |
| unsigned | cert_valid: 1 |
An ed25519-signed certificate as used throughout the Tor protocol.
| unsigned cert_expired |
True iff we checked the signature and first found that the cert had expired
Definition at line 55 of file torcert.h.
Referenced by cert_is_valid(), ed_key_init_from_file(), tor_cert_checksig(), and tor_cert_describe_signature_status().
| uint8_t cert_type |
One of CERT_TYPE_...
Definition at line 46 of file torcert.h.
Referenced by cert_is_valid(), check_one_family_cert(), desc_encode_v3(), extrainfo_parse_entry_from_string(), router_parse_entry_from_string(), and tor_cert_parse().
| unsigned cert_valid |
True iff we checked the signature and found the whole cert valid
Definition at line 57 of file torcert.h.
Referenced by tor_cert_checksig().
| uint8_t* encoded |
The encoded representation of this certificate
Definition at line 41 of file torcert.h.
Referenced by add_ed25519_cert(), ed_key_init_from_file(), router_dump_router_to_string(), tor_cert_dup(), tor_cert_eq(), tor_cert_free_(), tor_cert_get_checkable_sig(), and tor_cert_parse().
| size_t encoded_len |
The length of encoded
Definition at line 43 of file torcert.h.
Referenced by add_ed25519_cert(), ed_key_init_from_file(), router_dump_router_to_string(), tor_cert_dup(), tor_cert_eq(), tor_cert_free_(), tor_cert_get_checkable_sig(), and tor_cert_parse().
| unsigned sig_bad |
True iff we checked the signature and found it bad
Definition at line 50 of file torcert.h.
Referenced by tor_cert_checksig(), and tor_cert_describe_signature_status().
| unsigned sig_ok |
True iff we checked the signature and found it correct
Definition at line 52 of file torcert.h.
Referenced by tor_cert_checksig(), and tor_cert_describe_signature_status().
| ed25519_public_key_t signed_key |
The key authenticated by this certificate
Definition at line 33 of file torcert.h.
Referenced by check_one_family_cert(), client_get_random_intro(), desc_decode_plaintext_v3(), ed_key_init_from_file(), extrainfo_parse_entry_from_string(), generate_ed_link_cert(), hs_client_setup_intro_circ_auth_key(), intro_point_is_usable(), load_ed_keys(), router_parse_entry_from_string(), setup_introduce1_data(), should_make_new_ed_keys(), and tor_cert_parse().
| ed25519_public_key_t signing_key |
The key that signed this certificate. This value may be unset if the certificate has never been checked, and didn't include its own key.
Definition at line 36 of file torcert.h.
Referenced by cert_is_valid(), check_one_family_cert(), desc_decode_plaintext_v3(), ed_key_init_from_file(), load_ed_keys(), router_parse_entry_from_string(), routerinfo_get_ed25519_id(), tor_cert_checksig(), tor_cert_get_checkable_sig(), and tor_cert_parse().
| unsigned signing_key_included |
True iff we received a signing key embedded in this certificate
Definition at line 48 of file torcert.h.
Referenced by cert_is_valid(), check_one_family_cert(), ed_key_init_from_file(), extrainfo_parse_entry_from_string(), load_ed_keys(), router_parse_entry_from_string(), tor_cert_get_checkable_sig(), and tor_cert_parse().
| time_t valid_until |
A time after which this certificate will no longer be valid.
Definition at line 38 of file torcert.h.
Referenced by cert_is_valid(), check_one_family_cert(), fill_signing_cert_expiry(), log_ed_cert_expiration(), tor_cert_get_checkable_sig(), and tor_cert_parse().