PolarSSL v1.1.4
Data Fields
_x509_cert Struct Reference

Container for an X.509 certificate. More...

#include <x509.h>

Collaboration diagram for _x509_cert:
Collaboration graph
[legend]

Data Fields

x509_buf raw
 The raw certificate data (DER).
x509_buf tbs
 The raw certificate body (DER).
int version
 The X.509 version.
x509_buf serial
 Unique id for certificate issued by a specific CA.
x509_buf sig_oid1
 Signature algorithm, e.g.
x509_buf issuer_raw
 The raw issuer data (DER).
x509_buf subject_raw
 The raw subject data (DER).
x509_name issuer
 The parsed issuer data (named information object).
x509_name subject
 The parsed subject data (named information object).
x509_time valid_from
 Start time of certificate validity.
x509_time valid_to
 End time of certificate validity.
x509_buf pk_oid
 Subject public key info.
rsa_context rsa
 Container for the RSA context.
x509_buf issuer_id
 Optional X.509 v2/v3 issuer unique identifier.
x509_buf subject_id
 Optional X.509 v2/v3 subject unique identifier.
x509_buf v3_ext
 Optional X.509 v3 extensions.
int ext_types
 Bit string containing detected and parsed extensions.
int ca_istrue
 Optional Basic Constraint extension value: 1 if this certificate belongs to a CA, 0 otherwise.
int max_pathlen
 Optional Basic Constraint extension value: The maximum path length to the root certificate.
unsigned char key_usage
 Optional key usage extension value: See the values below.
x509_sequence ext_key_usage
 Optional list of extended key usage OIDs.
unsigned char ns_cert_type
 Optional Netscape certificate type extension value: See the values below.
x509_buf sig_oid2
 Signature algorithm.
x509_buf sig
 Signature: hash of the tbs part signed with the private key.
int sig_alg
 Internal representation of the signature algorithm, e.g.
struct _x509_certnext
 Next certificate in the CA-chain.

Detailed Description

Container for an X.509 certificate.

The certificate may be chained.

Definition at line 279 of file x509.h.


Field Documentation

Optional Basic Constraint extension value: 1 if this certificate belongs to a CA, 0 otherwise.

Definition at line 305 of file x509.h.

Optional list of extended key usage OIDs.

Definition at line 310 of file x509.h.

Bit string containing detected and parsed extensions.

Definition at line 304 of file x509.h.

The parsed issuer data (named information object).

Definition at line 291 of file x509.h.

Referenced by FCT_BGN().

Optional X.509 v2/v3 issuer unique identifier.

Definition at line 300 of file x509.h.

The raw issuer data (DER).

Used for quick comparison.

Definition at line 288 of file x509.h.

unsigned char _x509_cert::key_usage

Optional key usage extension value: See the values below.

Definition at line 308 of file x509.h.

Optional Basic Constraint extension value: The maximum path length to the root certificate.

Definition at line 306 of file x509.h.

Next certificate in the CA-chain.

Definition at line 318 of file x509.h.

unsigned char _x509_cert::ns_cert_type

Optional Netscape certificate type extension value: See the values below.

Definition at line 312 of file x509.h.

Subject public key info.

Includes the public key algorithm and the key itself.

Definition at line 297 of file x509.h.

The raw certificate data (DER).

Definition at line 281 of file x509.h.

Container for the RSA context.

Only RSA is supported for public keys at this time.

Definition at line 298 of file x509.h.

Unique id for certificate issued by a specific CA.

Definition at line 285 of file x509.h.

Signature: hash of the tbs part signed with the private key.

Definition at line 315 of file x509.h.

Internal representation of the signature algorithm, e.g.

SIG_RSA_MD2

Definition at line 316 of file x509.h.

Signature algorithm, e.g.

sha1RSA

Definition at line 286 of file x509.h.

Signature algorithm.

Must match sig_oid1.

Definition at line 314 of file x509.h.

The parsed subject data (named information object).

Definition at line 292 of file x509.h.

Referenced by FCT_BGN().

Optional X.509 v2/v3 subject unique identifier.

Definition at line 301 of file x509.h.

The raw subject data (DER).

Used for quick comparison.

Definition at line 289 of file x509.h.

The raw certificate body (DER).

The part that is To Be Signed.

Definition at line 282 of file x509.h.

Optional X.509 v3 extensions.

Only Basic Contraints are supported at this time.

Definition at line 302 of file x509.h.

Start time of certificate validity.

Definition at line 294 of file x509.h.

Referenced by FCT_BGN().

End time of certificate validity.

Definition at line 295 of file x509.h.

Referenced by FCT_BGN().

The X.509 version.

(0=v1, 1=v2, 2=v3)

Definition at line 284 of file x509.h.


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