odyssey/sources/mm_tls.h

31 lines
432 B
C
Raw Normal View History

2017-05-24 11:04:19 +00:00
#ifndef MM_TLS_H
#define MM_TLS_H
2017-03-24 09:27:49 +00:00
/*
* machinarium.
*
* cooperative multitasking engine.
*/
2017-05-24 11:04:19 +00:00
typedef struct mm_tls mm_tls_t;
2017-03-24 09:27:49 +00:00
2017-05-24 11:04:19 +00:00
typedef enum
{
MM_TLS_NONE,
MM_TLS_PEER,
MM_TLS_PEER_STRICT
} mm_tlsverify_t;
2017-03-24 09:55:18 +00:00
2017-05-24 11:04:19 +00:00
struct mm_tls
{
mm_tlsverify_t verify;
char *server;
2017-04-05 13:54:07 +00:00
char *protocols;
char *ca_path;
char *ca_file;
char *cert_file;
char *key_file;
2017-03-24 09:27:49 +00:00
};
2017-05-24 11:04:19 +00:00
#endif /* MM_TLS_H */