RetroArch
Classes | Macros | Functions | Variables
x509_create.c File Reference
#include "mbedtls/config.h"
#include "mbedtls/x509.h"
#include "mbedtls/asn1write.h"
#include "mbedtls/oid.h"
#include <string.h>
Include dependency graph for x509_create.c:

Classes

struct  x509_attr_descriptor_t
 

Macros

#define ADD_STRLEN(s)   s, sizeof( s ) - 1
 

Functions

static const char * x509_at_oid_from_name (const char *name, size_t name_len)
 
int mbedtls_x509_string_to_names (mbedtls_asn1_named_data **head, 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)
 
static int x509_write_name (unsigned char **p, unsigned char *start, const char *oid, size_t oid_len, const unsigned char *name, size_t name_len)
 
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)
 
static int x509_write_extension (unsigned char **p, unsigned char *start, mbedtls_asn1_named_data *ext)
 
int mbedtls_x509_write_extensions (unsigned char **p, unsigned char *start, mbedtls_asn1_named_data *first)
 

Variables

static const x509_attr_descriptor_t x509_attrs []
 

Macro Definition Documentation

◆ ADD_STRLEN

#define ADD_STRLEN (   s)    s, sizeof( s ) - 1

Function Documentation

◆ 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 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_x509_string_to_names()

int mbedtls_x509_string_to_names ( mbedtls_asn1_named_data **  head,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_x509_write_extensions()

int mbedtls_x509_write_extensions ( unsigned char **  p,
unsigned char *  start,
mbedtls_asn1_named_data first 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_x509_write_names()

int mbedtls_x509_write_names ( unsigned char **  p,
unsigned char *  start,
mbedtls_asn1_named_data first 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_at_oid_from_name()

static const char* x509_at_oid_from_name ( const char *  name,
size_t  name_len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_write_extension()

static int x509_write_extension ( unsigned char **  p,
unsigned char *  start,
mbedtls_asn1_named_data ext 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_write_name()

static int x509_write_name ( unsigned char **  p,
unsigned char *  start,
const char *  oid,
size_t  oid_len,
const unsigned char *  name,
size_t  name_len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ x509_attrs

const x509_attr_descriptor_t x509_attrs[]
static