Certificate Signing Request (CSR) structure.

Some fields of this structure are publicly readable. Do not modify them except via Mbed TLS library functions: the effect of modifying those fields or the data that those fields point to is unspecified.

Public Attributes#

The raw CSR data (DER).

The raw CertificateRequestInfo body (DER).

int

CSR version (1=v1).

The raw subject data (DER).

The parsed subject data (named information object).

Container for the public key context.

unsigned int

Optional key usage extension value: See the values in x509.h.

unsigned char

Optional Netscape certificate type extension value: See the values in x509.h.

Optional list of raw entries of Subject Alternative Names extension.

Public Functions#

int
MBEDTLS_PRIVATE(ext_types)

Bit string containing detected and parsed extensions.

mbedtls_md_type_t

Internal representation of the MD algorithm of the signature algorithm, e.g.

mbedtls_pk_type_t

Internal representation of the Public Key algorithm of the signature algorithm, e.g.

void *
MBEDTLS_PRIVATE(sig_opts)

Signature options to be passed to mbedtls_pk_verify_ext(), e.g.

Public Attribute Documentation#

raw#

mbedtls_x509_buf mbedtls_x509_csr::raw

The raw CSR data (DER).


cri#

mbedtls_x509_buf mbedtls_x509_csr::cri

The raw CertificateRequestInfo body (DER).


version#

int mbedtls_x509_csr::version

CSR version (1=v1).


subject_raw#

mbedtls_x509_buf mbedtls_x509_csr::subject_raw

The raw subject data (DER).


subject#

mbedtls_x509_name mbedtls_x509_csr::subject

The parsed subject data (named information object).


pk#

mbedtls_pk_context mbedtls_x509_csr::pk

Container for the public key context.


key_usage#

unsigned int mbedtls_x509_csr::key_usage

Optional key usage extension value: See the values in x509.h.


ns_cert_type#

unsigned char mbedtls_x509_csr::ns_cert_type

Optional Netscape certificate type extension value: See the values in x509.h.


subject_alt_names#

mbedtls_x509_sequence mbedtls_x509_csr::subject_alt_names

Optional list of raw entries of Subject Alternative Names extension.

These can be later parsed by mbedtls_x509_parse_subject_alt_name.


sig_oid#

mbedtls_x509_buf mbedtls_x509_csr::sig_oid

Public Function Documentation#

MBEDTLS_PRIVATE#

int mbedtls_x509_csr::MBEDTLS_PRIVATE (ext_types )

Bit string containing detected and parsed extensions.

Parameters
TypeDirectionArgument NameDescription
ext_typesN/A

MBEDTLS_PRIVATE#

mbedtls_x509_buf mbedtls_x509_csr::MBEDTLS_PRIVATE (sig )
Parameters
TypeDirectionArgument NameDescription
sigN/A

MBEDTLS_PRIVATE#

mbedtls_md_type_t mbedtls_x509_csr::MBEDTLS_PRIVATE (sig_md )

Internal representation of the MD algorithm of the signature algorithm, e.g.

Parameters
TypeDirectionArgument NameDescription
sig_mdN/A

MBEDTLS_MD_SHA256


MBEDTLS_PRIVATE#

mbedtls_pk_type_t mbedtls_x509_csr::MBEDTLS_PRIVATE (sig_pk )

Internal representation of the Public Key algorithm of the signature algorithm, e.g.

Parameters
TypeDirectionArgument NameDescription
sig_pkN/A

MBEDTLS_PK_RSA


MBEDTLS_PRIVATE#

void * mbedtls_x509_csr::MBEDTLS_PRIVATE (sig_opts )

Signature options to be passed to mbedtls_pk_verify_ext(), e.g.

Parameters
TypeDirectionArgument NameDescription
sig_optsN/A

for RSASSA-PSS