lokinet/include/llarp/dtls.h
sachaaaaa 6f055eca4f Extracted structs out of iwp_link.cpp
to rebase

to rebase
2018-07-09 15:01:15 +10:00

28 lines
478 B
C

#ifndef LLARP_DTLS_H_
#define LLARP_DTLS_H_
#include <llarp/mem.h>
/**
* dtls.h
*
* Datagram TLS functions
* https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security for more info
* on DTLS
*/
/// DTLS configuration
struct llarp_dtls_args
{
struct llarp_alloc* mem;
const char* keyfile;
const char* certfile;
};
/// allocator
void
dtls_link_init(struct llarp_link* link, struct llarp_dtls_args args,
struct llarp_msg_muxer* muxer);
#endif