2018-05-16 15:30:05 +00:00
|
|
|
#ifndef LLARP_DTLS_H_
|
|
|
|
#define LLARP_DTLS_H_
|
|
|
|
|
2018-05-22 15:54:19 +00:00
|
|
|
#include <llarp/mem.h>
|
2018-05-16 15:30:05 +00:00
|
|
|
|
2018-05-25 09:17:08 +00:00
|
|
|
/**
|
|
|
|
* dtls.h
|
|
|
|
*
|
|
|
|
* Datagram TLS functions
|
2018-05-25 12:27:54 +00:00
|
|
|
* https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security for more info
|
|
|
|
* on DTLS
|
2018-05-25 09:17:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/// DTLS configuration
|
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-25 09:17:08 +00:00
|
|
|
/// allocator
|
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
|
|
|
|
|
|
|
#endif
|