mirror of https://github.com/yandex/odyssey.git
31 lines
444 B
C
31 lines
444 B
C
#ifndef MM_TLS_API_H
|
|
#define MM_TLS_API_H
|
|
|
|
/*
|
|
* machinarium.
|
|
*
|
|
* cooperative multitasking engine.
|
|
*/
|
|
|
|
typedef struct mm_tls mm_tls_t;
|
|
|
|
typedef enum
|
|
{
|
|
MM_TLS_NONE,
|
|
MM_TLS_PEER,
|
|
MM_TLS_PEER_STRICT
|
|
} mm_tlsverify_t;
|
|
|
|
struct mm_tls
|
|
{
|
|
mm_tlsverify_t verify;
|
|
char *server;
|
|
char *protocols;
|
|
char *ca_path;
|
|
char *ca_file;
|
|
char *cert_file;
|
|
char *key_file;
|
|
};
|
|
|
|
#endif /* MM_TLS_API_H */
|