You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/include/llarp/dtls.h

36 lines
570 B
C

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