This is a fork of the mbed port of axTLS
Dependents: TLS_axTLS-Example HTTPSClientExample
cert_manager.h
00001 #ifndef CERT_MANAGER_H 00002 #define CERT_MANAGER_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #include "axTLS/ssl/crypto_misc.h " 00009 00010 00011 struct PrecomputedCertificate { 00012 char *ca_cert_dn[X509_NUM_DN_TYPES]; 00013 char *cert_dn[X509_NUM_DN_TYPES]; 00014 uint8_t *sig; 00015 uint16_t sig_len; 00016 uint8_t *mod; 00017 uint16_t mod_len; 00018 uint8_t *expn; 00019 uint16_t expn_len; 00020 uint8_t *digest; 00021 uint16_t digest_len; 00022 PrecomputedCertificate *next; 00023 }; 00024 typedef struct PrecomputedCertificate PrecomputedCertificate; 00025 00026 00027 /* 00028 This is the C API of CertificateManager. These functions are 00029 used by axTLS to access certificates that have been loaded. 00030 */ 00031 char is_precomputed(void); 00032 PrecomputedCertificate get_precomputed_cert(char *cert_dn[], char *ca_cert_dn[]); 00033 X509_CTX* get_cert(char *ca_cert_dn[]); 00034 void cert_manager_clear(void); 00035 00036 00037 #ifdef __cplusplus 00038 } 00039 #endif 00040 00041 00042 #endif 00043 00044 00045
Generated on Wed Jul 13 2022 19:30:07 by 1.7.2