XenevaOS
Loading...
Searching...
No Matches
Functions
x509_internal.h File Reference
#include "mbedtls/private_access.h"
#include "mbedtls/build_info.h"
#include "mbedtls/x509.h"
#include "mbedtls/asn1.h"
#include "pk_internal.h"
Include dependency graph for x509_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int mbedtls_x509_get_name (unsigned char **p, const unsigned char *end, mbedtls_x509_name *cur)
 
int mbedtls_x509_get_alg_null (unsigned char **p, const unsigned char *end, mbedtls_x509_buf *alg)
 
int mbedtls_x509_get_alg (unsigned char **p, const unsigned char *end, mbedtls_x509_buf *alg, mbedtls_x509_buf *params)
 
int mbedtls_x509_get_sig (unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig)
 
int mbedtls_x509_get_sig_alg (const mbedtls_x509_buf *sig_oid, const mbedtls_x509_buf *sig_params, mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg, void **sig_opts)
 
int mbedtls_x509_get_time (unsigned char **p, const unsigned char *end, mbedtls_x509_time *t)
 
int mbedtls_x509_get_serial (unsigned char **p, const unsigned char *end, mbedtls_x509_buf *serial)
 
int mbedtls_x509_get_ext (unsigned char **p, const unsigned char *end, mbedtls_x509_buf *ext, int tag)
 
int mbedtls_x509_sig_alg_gets (char *buf, size_t size, const mbedtls_x509_buf *sig_oid, mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg, const void *sig_opts)
 
int mbedtls_x509_key_size_helper (char *buf, size_t buf_size, const char *name)
 
int mbedtls_x509_set_extension (mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, int critical, const unsigned char *val, size_t val_len)
 
int mbedtls_x509_write_extensions (unsigned char **p, unsigned char *start, mbedtls_asn1_named_data *first)
 
int mbedtls_x509_write_names (unsigned char **p, unsigned char *start, mbedtls_asn1_named_data *first)
 
int mbedtls_x509_write_sig (unsigned char **p, unsigned char *start, const char *oid, size_t oid_len, unsigned char *sig, size_t size, mbedtls_pk_type_t pk_alg)
 
int mbedtls_x509_get_ns_cert_type (unsigned char **p, const unsigned char *end, unsigned char *ns_cert_type)
 
int mbedtls_x509_get_key_usage (unsigned char **p, const unsigned char *end, unsigned int *key_usage)
 
int mbedtls_x509_get_subject_alt_name (unsigned char **p, const unsigned char *end, mbedtls_x509_sequence *subject_alt_name)
 
int mbedtls_x509_get_subject_alt_name_ext (unsigned char **p, const unsigned char *end, mbedtls_x509_sequence *subject_alt_name)
 
int mbedtls_x509_info_subject_alt_name (char **buf, size_t *size, const mbedtls_x509_sequence *subject_alt_name, const char *prefix)
 
int mbedtls_x509_info_cert_type (char **buf, size_t *size, unsigned char ns_cert_type)
 
int mbedtls_x509_info_key_usage (char **buf, size_t *size, unsigned int key_usage)
 
int mbedtls_x509_write_set_san_common (mbedtls_asn1_named_data **extensions, const mbedtls_x509_san_list *san_list)
 

Function Documentation

◆ mbedtls_x509_get_alg()

int mbedtls_x509_get_alg ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_buf *  alg,
mbedtls_x509_buf *  params 
)

◆ mbedtls_x509_get_alg_null()

int mbedtls_x509_get_alg_null ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_buf *  alg 
)

◆ mbedtls_x509_get_ext()

int mbedtls_x509_get_ext ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_buf *  ext,
int  tag 
)

◆ mbedtls_x509_get_key_usage()

int mbedtls_x509_get_key_usage ( unsigned char **  p,
const unsigned char *  end,
unsigned int *  key_usage 
)

◆ mbedtls_x509_get_name()

int mbedtls_x509_get_name ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_name *  cur 
)

◆ mbedtls_x509_get_ns_cert_type()

int mbedtls_x509_get_ns_cert_type ( unsigned char **  p,
const unsigned char *  end,
unsigned char *  ns_cert_type 
)

◆ mbedtls_x509_get_serial()

int mbedtls_x509_get_serial ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_buf *  serial 
)

◆ mbedtls_x509_get_sig()

int mbedtls_x509_get_sig ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_buf *  sig 
)

◆ mbedtls_x509_get_sig_alg()

int mbedtls_x509_get_sig_alg ( const mbedtls_x509_buf *  sig_oid,
const mbedtls_x509_buf *  sig_params,
mbedtls_md_type_t *  md_alg,
mbedtls_pk_type_t *  pk_alg,
void **  sig_opts 
)

◆ mbedtls_x509_get_subject_alt_name()

int mbedtls_x509_get_subject_alt_name ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_sequence *  subject_alt_name 
)

◆ mbedtls_x509_get_subject_alt_name_ext()

int mbedtls_x509_get_subject_alt_name_ext ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_sequence *  subject_alt_name 
)

◆ mbedtls_x509_get_time()

int mbedtls_x509_get_time ( unsigned char **  p,
const unsigned char *  end,
mbedtls_x509_time *  t 
)

◆ mbedtls_x509_info_cert_type()

int mbedtls_x509_info_cert_type ( char **  buf,
size_t *  size,
unsigned char  ns_cert_type 
)

◆ mbedtls_x509_info_key_usage()

int mbedtls_x509_info_key_usage ( char **  buf,
size_t *  size,
unsigned int  key_usage 
)

◆ mbedtls_x509_info_subject_alt_name()

int mbedtls_x509_info_subject_alt_name ( char **  buf,
size_t *  size,
const mbedtls_x509_sequence *  subject_alt_name,
const char *  prefix 
)

◆ mbedtls_x509_key_size_helper()

int mbedtls_x509_key_size_helper ( char *  buf,
size_t  buf_size,
const char *  name 
)

◆ mbedtls_x509_set_extension()

int mbedtls_x509_set_extension ( mbedtls_asn1_named_data **  head,
const char *  oid,
size_t  oid_len,
int  critical,
const unsigned char *  val,
size_t  val_len 
)

◆ mbedtls_x509_sig_alg_gets()

int mbedtls_x509_sig_alg_gets ( char *  buf,
size_t  size,
const mbedtls_x509_buf *  sig_oid,
mbedtls_pk_type_t  pk_alg,
mbedtls_md_type_t  md_alg,
const void *  sig_opts 
)

◆ mbedtls_x509_write_extensions()

int mbedtls_x509_write_extensions ( unsigned char **  p,
unsigned char *  start,
mbedtls_asn1_named_data *  first 
)

◆ mbedtls_x509_write_names()

int mbedtls_x509_write_names ( unsigned char **  p,
unsigned char *  start,
mbedtls_asn1_named_data *  first 
)

◆ mbedtls_x509_write_set_san_common()

int mbedtls_x509_write_set_san_common ( mbedtls_asn1_named_data **  extensions,
const mbedtls_x509_san_list *  san_list 
)

◆ mbedtls_x509_write_sig()

int mbedtls_x509_write_sig ( unsigned char **  p,
unsigned char *  start,
const char *  oid,
size_t  oid_len,
unsigned char *  sig,
size_t  size,
mbedtls_pk_type_t  pk_alg 
)