Mbed OS Reference
Loading...
Searching...
No Matches
x509_crt.h File Reference

X.509 certificate parsing and writing. More...

#include "mbedtls/config.h"
#include "mbedtls/x509.h"
#include "mbedtls/x509_crl.h"
#include "mbedtls/bignum.h"

Go to the source code of this file.

Data Structures

struct  mbedtls_x509_crt
 Container for an X.509 certificate. More...
 
struct  mbedtls_x509_san_other_name
 From RFC 5280 section 4.2.1.6: OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id }. More...
 
struct  mbedtls_x509_subject_alternative_name
 A structure for holding the parsed Subject Alternative Name, according to type. More...
 
struct  mbedtls_x509_crt_profile
 Security profile for certificate verification. More...
 
struct  mbedtls_x509write_cert
 Container for writing a certificate (CRT) More...
 
struct  mbedtls_x509_crt_verify_chain_item
 Item in a verification chain: cert and flags for it. More...
 
struct  mbedtls_x509_crt_verify_chain
 Verification chain as built by mbedtls_crt_verify_chain() More...
 

Structures and functions for parsing and writing X.509 certificates

#define MBEDTLS_X509_ID_FLAG(id)   ( 1 << ( (id) - 1 ) )
 Build flag from an algorithm/curve identifier (pk, md, ecp) Since 0 is always XXX_NONE, ignore it. More...
 
#define MBEDTLS_X509_CRT_VERSION_1   0
 
#define MBEDTLS_X509_CRT_VERSION_2   1
 
#define MBEDTLS_X509_CRT_VERSION_3   2
 
#define MBEDTLS_X509_RFC5280_MAX_SERIAL_LEN   32
 
#define MBEDTLS_X509_RFC5280_UTC_TIME_LEN   15
 
#define MBEDTLS_X509_MAX_FILE_PATH_LEN   512
 
#define MBEDTLS_X509_MAX_VERIFY_CHAIN_SIZE   ( MBEDTLS_X509_MAX_INTERMEDIATE_CA + 2 )
 Max size of verification chain: end-entity + intermediates + trusted root. More...
 
typedef struct mbedtls_x509_crt mbedtls_x509_crt
 Container for an X.509 certificate. More...
 
typedef struct mbedtls_x509_san_other_name mbedtls_x509_san_other_name
 From RFC 5280 section 4.2.1.6: OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id }. More...
 
typedef struct mbedtls_x509_subject_alternative_name mbedtls_x509_subject_alternative_name
 A structure for holding the parsed Subject Alternative Name, according to type. More...
 
typedef struct mbedtls_x509_crt_profile mbedtls_x509_crt_profile
 Security profile for certificate verification. More...
 
typedef struct mbedtls_x509write_cert mbedtls_x509write_cert
 Container for writing a certificate (CRT) More...
 
typedef void mbedtls_x509_crt_restart_ctx
 

Detailed Description

X.509 certificate parsing and writing.

Definition in file x509_crt.h.