lokinet/include/llarp/dtls.h

28 lines
478 B
C
Raw Normal View History

2018-05-16 15:30:05 +00:00
#ifndef LLARP_DTLS_H_
#define LLARP_DTLS_H_
#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
* https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security for more info
* on DTLS
2018-05-25 09:17:08 +00:00
*/
/// DTLS configuration
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
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