22#ifndef MBEDTLS_X509_CSR_H
23#define MBEDTLS_X509_CSR_H
25#if !defined(MBEDTLS_CONFIG_FILE)
28#include MBEDTLS_CONFIG_FILE
81#if defined(MBEDTLS_X509_CSR_PARSE_C)
94 const unsigned char *buf,
size_t buflen );
108int mbedtls_x509_csr_parse(
mbedtls_x509_csr *csr,
const unsigned char *buf,
size_t buflen );
110#if defined(MBEDTLS_FS_IO)
136int mbedtls_x509_csr_info(
char *buf,
size_t size,
const char *prefix,
157#if defined(MBEDTLS_X509_CSR_WRITE_C)
178 const char *subject_name );
227 unsigned char ns_cert_type );
242 const char *oid,
size_t oid_len,
243 const unsigned char *val,
size_t val_len );
274 int (*f_rng)(
void *,
unsigned char *,
size_t),
277#if defined(MBEDTLS_PEM_WRITE_C)
296 int (*f_rng)(
void *,
unsigned char *,
size_t),
Configuration options (set of defines)
mbedtls_md_type_t
Supported message digests.
mbedtls_pk_type_t
Public key types.
Type-length-value structure that allows for ASN1 using DER.
Container for a sequence or list of 'named' ASN.1 data items.
Certificate Signing Request (CSR) structure.
mbedtls_md_type_t sig_md
Internal representation of the MD algorithm of the signature algorithm, e.g.
mbedtls_x509_buf subject_raw
The raw subject data (DER).
mbedtls_pk_context pk
Container for the public key context.
mbedtls_pk_type_t sig_pk
Internal representation of the Public Key algorithm of the signature algorithm, e....
mbedtls_x509_name subject
The parsed subject data (named information object).
mbedtls_x509_buf raw
The raw CSR data (DER).
int version
CSR version (1=v1).
mbedtls_x509_buf cri
The raw CertificateRequestInfo body (DER).
void * sig_opts
Signature options to be passed to mbedtls_pk_verify_ext(), e.g.
Container for writing a CSR.
X.509 generic defines and structures.