10#ifndef MBEDTLS_X509_CSR_H
11#define MBEDTLS_X509_CSR_H
74#if defined(MBEDTLS_X509_CSR_PARSE_C)
93 const unsigned char *buf,
size_t buflen);
123typedef int (*mbedtls_x509_csr_ext_cb_t)(
void *p_ctx,
127 const unsigned char *p,
128 const unsigned char *
end);
152 const unsigned char *buf,
size_t buflen,
153 mbedtls_x509_csr_ext_cb_t cb,
172int mbedtls_x509_csr_parse(
mbedtls_x509_csr *csr,
const unsigned char *buf,
size_t buflen);
174#if defined(MBEDTLS_FS_IO)
188#if !defined(MBEDTLS_X509_REMOVE_INFO)
201int mbedtls_x509_csr_info(
char *buf,
size_t size,
const char *prefix,
222#if defined(MBEDTLS_X509_CSR_WRITE_C)
243 const char *subject_name);
306 unsigned char ns_cert_type);
322 const char *oid,
size_t oid_len,
324 const unsigned char *val,
size_t val_len);
355#if defined(MBEDTLS_PEM_WRITE_C)
size_t size
Definition drm_bridge.h:1299
__u64 extensions
Definition i915_drm.h:0
Build-time configuration info.
mbedtls_md_type_t
Supported message digests.
Definition md.h:47
mbedtls_pk_type_t
Public key types.
Definition pk.h:73
Macro wrapper for struct's members.
Public key container.
Definition pk.h:220
mbedtls_x509_name subject
Definition x509_csr.h:45
mbedtls_x509_sequence subject_alt_names
Definition x509_csr.h:51
unsigned char ns_cert_type
Definition x509_csr.h:50
mbedtls_x509_buf sig_oid
Definition x509_csr.h:55
int version
Definition x509_csr.h:42
mbedtls_x509_buf cri
Definition x509_csr.h:40
void * MBEDTLS_PRIVATE(sig_opts)
int MBEDTLS_PRIVATE(ext_types)
mbedtls_x509_buf MBEDTLS_PRIVATE(sig)
mbedtls_md_type_t MBEDTLS_PRIVATE(sig_md)
mbedtls_pk_context pk
Definition x509_csr.h:47
unsigned int key_usage
Definition x509_csr.h:49
mbedtls_x509_buf raw
Definition x509_csr.h:39
mbedtls_x509_buf subject_raw
Definition x509_csr.h:44
mbedtls_pk_type_t MBEDTLS_PRIVATE(sig_pk)
mbedtls_asn1_named_data * MBEDTLS_PRIVATE(subject)
mbedtls_pk_context * MBEDTLS_PRIVATE(key)
mbedtls_asn1_named_data * MBEDTLS_PRIVATE(extensions)
mbedtls_md_type_t MBEDTLS_PRIVATE(md_alg)
X.509 generic defines and structures.