iPXE
x509_certificate Struct Reference

An X.509 certificate. More...

#include <x509.h>

Data Fields

struct refcnt refcnt
 Reference count.
struct x509_link store
 Link in certificate store.
unsigned int flags
 Flags.
struct x509_rootroot
 Root against which certificate has been validated (if any)
unsigned int path_remaining
 Maximum number of subsequent certificates in chain.
struct asn1_cursor raw
 Raw certificate.
unsigned int version
 Version.
struct x509_serial serial
 Serial number.
struct asn1_cursor tbs
 Raw tbsCertificate.
struct asn1_algorithmsignature_algorithm
 Signature algorithm.
struct x509_issuer issuer
 Issuer.
struct x509_validity validity
 Validity.
struct x509_subject subject
 Subject.
struct x509_signature signature
 Signature.
struct x509_extensions extensions
 Extensions.

Detailed Description

An X.509 certificate.

Definition at line 216 of file x509.h.

Field Documentation

◆ refcnt

struct refcnt x509_certificate::refcnt

Reference count.

Definition at line 218 of file x509.h.

Referenced by certstore_discard(), certstore_init(), x509_get(), and x509_put().

◆ store

◆ flags

unsigned int x509_certificate::flags

Flags.

Definition at line 224 of file x509.h.

Referenced by certstat(), certstore_del(), certstore_discard(), certstore_init(), and certstore_payload().

◆ root

struct x509_root* x509_certificate::root

Root against which certificate has been validated (if any)

Definition at line 226 of file x509.h.

Referenced by ocsp_check(), ocsp_validate(), x509_free(), x509_invalidate(), x509_is_valid(), and x509_set_valid().

◆ path_remaining

unsigned int x509_certificate::path_remaining

Maximum number of subsequent certificates in chain.

Definition at line 228 of file x509.h.

Referenced by x509_invalidate(), x509_set_valid(), and x509_validate().

◆ raw

struct asn1_cursor x509_certificate::raw

Raw certificate.

Definition at line 231 of file x509.h.

Referenced by icert_encode(), tls_send_certificate(), x509_find(), x509_fingerprint(), and x509_parse().

◆ version

unsigned int x509_certificate::version

Version.

Definition at line 233 of file x509.h.

Referenced by x509_parse_version().

◆ serial

struct x509_serial x509_certificate::serial

Serial number.

Definition at line 235 of file x509.h.

Referenced by ocsp_request(), x509_find_issuer_serial(), and x509_parse_serial().

◆ tbs

struct asn1_cursor x509_certificate::tbs

Raw tbsCertificate.

Definition at line 237 of file x509.h.

Referenced by x509_check_signature(), and x509_parse_tbscertificate().

◆ signature_algorithm

struct asn1_algorithm* x509_certificate::signature_algorithm

Signature algorithm.

Definition at line 239 of file x509.h.

Referenced by tls_send_certificate_verify(), x509_check_signature(), x509_find_key(), and x509_parse_tbscertificate().

◆ issuer

◆ validity

struct x509_validity x509_certificate::validity

Validity.

Definition at line 243 of file x509.h.

Referenced by x509_check_time(), and x509_parse_validity().

◆ subject

◆ signature

struct x509_signature x509_certificate::signature

Signature.

Definition at line 247 of file x509.h.

Referenced by x509_check_signature(), and x509_parse().

◆ extensions


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