Tor  0.4.7.0-alpha-dev
Data Fields
tor_cert_t Struct Reference

#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
 

Detailed Description

An ed25519-signed certificate as used throughout the Tor protocol.

Definition at line 30 of file torcert.h.

Field Documentation

◆ cert_expired

unsigned cert_expired

True iff we checked the signature and first found that the cert had expired

Definition at line 54 of file torcert.h.

Referenced by tor_cert_describe_signature_status().

◆ cert_type

uint8_t cert_type

One of CERT_TYPE_...

Definition at line 45 of file torcert.h.

Referenced by desc_encode_v3().

◆ cert_valid

unsigned cert_valid

True iff we checked the signature and found the whole cert valid

Definition at line 56 of file torcert.h.

◆ encoded

uint8_t* encoded

The encoded representation of this certificate

Definition at line 40 of file torcert.h.

Referenced by add_ed25519_cert(), tor_cert_eq(), tor_cert_free_(), and tor_cert_get_checkable_sig().

◆ encoded_len

size_t encoded_len

The length of encoded

Definition at line 42 of file torcert.h.

Referenced by add_ed25519_cert(), tor_cert_eq(), tor_cert_free_(), and tor_cert_get_checkable_sig().

◆ sig_bad

unsigned sig_bad

True iff we checked the signature and found it bad

Definition at line 49 of file torcert.h.

Referenced by tor_cert_describe_signature_status().

◆ sig_ok

unsigned sig_ok

True iff we checked the signature and found it correct

Definition at line 51 of file torcert.h.

Referenced by tor_cert_describe_signature_status().

◆ signed_key

The key authenticated by this certificate

Definition at line 32 of file torcert.h.

Referenced by intro_point_is_usable().

◆ signing_key

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 35 of file torcert.h.

Referenced by tor_cert_get_checkable_sig().

◆ signing_key_included

unsigned signing_key_included

True iff we received a signing key embedded in this certificate

Definition at line 47 of file torcert.h.

Referenced by tor_cert_get_checkable_sig().

◆ valid_until

time_t valid_until

A time after which this certificate will no longer be valid.

Definition at line 37 of file torcert.h.


The documentation for this struct was generated from the following file: