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