23 #ifndef MBEDTLS_X509_CSR_H
24 #define MBEDTLS_X509_CSR_H
26 #if !defined(MBEDTLS_CONFIG_FILE)
29 #include MBEDTLS_CONFIG_FILE
82 #if defined(MBEDTLS_X509_CSR_PARSE_C)
93 const unsigned char *buf,
size_t buflen );
105 int mbedtls_x509_csr_parse(
mbedtls_x509_csr *csr,
const unsigned char *buf,
size_t buflen );
107 #if defined(MBEDTLS_FS_IO)
131 int mbedtls_x509_csr_info(
char *buf,
size_t size,
const char *prefix,
152 #if defined(MBEDTLS_X509_CSR_WRITE_C)
173 const char *subject_name );
214 unsigned char ns_cert_type );
229 const char *oid,
size_t oid_len,
230 const unsigned char *val,
size_t val_len );
261 int (*f_rng)(
void *,
unsigned char *,
size_t),
264 #if defined(MBEDTLS_PEM_WRITE_C)
283 int (*f_rng)(
void *,
unsigned char *,
size_t),
Certificate Signing Request (CSR) structure.
mbedtls_x509_name subject
The parsed subject data (named information object).
int version
CSR version (1=v1).
mbedtls_md_type_t sig_md
Internal representation of the MD algorithm of the signature algorithm, e.g.
mbedtls_pk_type_t
Public key types.
Compatibility names (set of defines)
struct mbedtls_x509_csr mbedtls_x509_csr
Certificate Signing Request (CSR) structure.
mbedtls_asn1_named_data * extensions
mbedtls_pk_type_t sig_pk
Internal representation of the Public Key algorithm of the signature algorithm, e.g.
Container for a sequence or list of 'named' ASN.1 data items.
mbedtls_x509_buf raw
The raw CSR data (DER).
Type-length-value structure that allows for ASN1 using DER.
void * sig_opts
Signature options to be passed to mbedtls_pk_verify_ext(), e.g.
struct mbedtls_x509write_csr mbedtls_x509write_csr
Container for writing a CSR.
mbedtls_x509_buf cri
The raw CertificateRequestInfo body (DER).
X.509 generic defines and structures.
mbedtls_x509_buf subject_raw
The raw subject data (DER).
Container for writing a CSR.
mbedtls_asn1_named_data * subject
mbedtls_pk_context pk
Container for the public key context.