#include "global.h"
#include "peer.h"
#include "debug.h"
Go to the source code of this file.
Releases the storage allocated to peer
.
Definition at line 41 of file peer.c.
Creates a new peer for given session
. The current configuration is initialized with the cipher suite TLS_NULL_WITH_NULL_NULL (i.e. no security at all). This function returns a pointer to the new peer or NULL on error. The caller is responsible for releasing the storage allocated for this peer using dtls_free_peer().
- Parameters
-
session | The remote peer's address and local interface index. |
- Returns
- A pointer to a newly created and initialized peer object or NULL on error.
Definition at line 72 of file peer.c.