2018-05-16 15:30:05 +00:00
|
|
|
#ifndef LLARP_DTLS_H_
|
|
|
|
#define LLARP_DTLS_H_
|
|
|
|
|
2018-05-16 18:13:18 +00:00
|
|
|
#include <llarp/mem.h>
|
2018-05-16 15:30:05 +00:00
|
|
|
#include <llarp/link.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct llarp_dtls_args {
|
2018-05-16 18:13:18 +00:00
|
|
|
struct llarp_alloc * mem;
|
2018-05-17 20:00:58 +00:00
|
|
|
const char * keyfile;
|
|
|
|
const char * certfile;
|
2018-05-16 15:30:05 +00:00
|
|
|
};
|
|
|
|
|
2018-05-16 16:41:20 +00:00
|
|
|
void dtls_link_init(struct llarp_link* link, struct llarp_dtls_args args,
|
2018-05-16 15:30:05 +00:00
|
|
|
struct llarp_msg_muxer* muxer);
|
|
|
|
|
2018-05-17 20:00:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2018-05-16 15:30:05 +00:00
|
|
|
#endif
|