24#ifndef __M_TLS_CERTS__
25#define __M_TLS_CERTS__
29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
M_int64 M_time_t
Definition: m_time.h:161
M_tls_x509_t * M_tls_x509_read_crt(const char *crt)
unsigned char * M_tls_dhparam_generate(size_t bits, size_t *out_len)
enum M_tls_x509_san_type M_tls_x509_san_type_t
Definition: m_tls_certs.h:134
M_tls_x509_txt_t
Definition: m_tls_certs.h:111
struct M_tls_x509 M_tls_x509_t
Definition: m_tls_certs.h:107
M_bool M_tls_x509_txt_SAN_add(M_tls_x509_t *x509, M_tls_x509_san_type_t type, const char *text, M_bool append)
char * M_tls_x509_signature(M_tls_x509_t *x509, M_tls_x509_sig_alg_t alg)
M_tls_x509_t * M_tls_x509_new(const char *rsa_privkey)
M_tls_x509_t * M_tls_x509_read_csr(const char *csr)
char * M_tls_rsa_generate_key(size_t bits)
char * M_tls_x509_selfsign(M_tls_x509_t *x509, M_uint64 valid_secs)
M_tls_x509_san_type
Definition: m_tls_certs.h:130
M_time_t M_tls_x509_time_end(M_tls_x509_t *x509)
M_bool M_tls_x509_txt_add(M_tls_x509_t *x509, M_tls_x509_txt_t type, const char *text, M_bool append)
char * M_tls_x509_subject_name(M_tls_x509_t *x509)
char * M_tls_x509_sign(M_tls_x509_t *x509, const char *cacert, const char *caprivkey, M_uint64 valid_secs)
void M_tls_x509_destroy(M_tls_x509_t *x509)
M_tls_x509_sig_alg_t
Definition: m_tls_certs.h:123
char * M_tls_x509_issuer_name(M_tls_x509_t *x509)
char * M_tls_x509_write_csr(M_tls_x509_t *x509)
M_time_t M_tls_x509_time_start(M_tls_x509_t *x509)
@ M_TLS_X509_TXT_ORGANIZATION
Definition: m_tls_certs.h:113
@ M_TLS_X509_TXT_LOCALITY
Definition: m_tls_certs.h:117
@ M_TLS_X509_TXT_ORGANIZATIONALUNIT
Definition: m_tls_certs.h:116
@ M_TLS_X509_TXT_COMMONNAME
Definition: m_tls_certs.h:112
@ M_TLS_X509_TXT_COUNTRY
Definition: m_tls_certs.h:114
@ M_TLS_X509_TXT_STATE
Definition: m_tls_certs.h:115
@ M_TLS_X509_SAN_TYPE_DNS
Definition: m_tls_certs.h:131
@ M_TLS_X509_SAN_TYPE_IP
Definition: m_tls_certs.h:132
@ M_TLS_X509_SIG_ALG_SHA256
Definition: m_tls_certs.h:125
@ M_TLS_X509_SIG_ALG_SHA1
Definition: m_tls_certs.h:124