Go to the documentation of this file.
27 #ifndef POLARSSL_X509_CRT_H
28 #define POLARSSL_X509_CRT_H
30 #if !defined(POLARSSL_CONFIG_FILE)
33 #include POLARSSL_CONFIG_FILE
102 #define X509_CRT_VERSION_1 0
103 #define X509_CRT_VERSION_2 1
104 #define X509_CRT_VERSION_3 2
106 #define X509_RFC5280_MAX_SERIAL_LEN 32
107 #define X509_RFC5280_UTC_TIME_LEN 15
127 #if defined(POLARSSL_X509_CRT_PARSE_C)
157 #if defined(POLARSSL_FS_IO)
206 int x509_crt_info(
char *buf,
size_t size,
const char *prefix,
248 const char *cn,
int *flags,
249 int (*f_vrfy)(
void *,
x509_crt *,
int,
int *),
252 #if defined(POLARSSL_X509_CHECK_KEY_USAGE)
272 #if defined(POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE)
286 const char *usage_oid,
290 #if defined(POLARSSL_X509_CRL_PARSE_C)
321 #if defined(POLARSSL_X509_CRT_WRITE_C)
364 const char *not_after );
379 const char *issuer_name );
394 const char *subject_name );
435 const char *oid,
size_t oid_len,
437 const unsigned char *val,
size_t val_len );
451 int is_ca,
int max_pathlen );
453 #if defined(POLARSSL_SHA1_C)
498 unsigned char ns_cert_type );
528 int (*f_rng)(
void *,
unsigned char *,
size_t),
531 #if defined(POLARSSL_PEM_WRITE_C)
549 int (*f_rng)(
void *,
unsigned char *,
size_t),