Helium
|
Functions for interfacing with WolfSSL. More...
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/ssl.h>
Go to the source code of this file.
Functions | |
int | he_wolf_dtls_read (WOLFSSL *ssl, char *buf, int sz, void *ctx) |
Callback function to handle WolfSSL read requests. More... | |
int | he_wolf_dtls_write (WOLFSSL *ssl, char *buf, int sz, void *ctx) |
Callback function to handle WolfSSL write requests. More... | |
int | he_internal_write_packet_header (he_conn_t *conn, he_wire_hdr_t *hdr) |
Write the packet header into the header buffer. More... | |
int | he_wolf_tls_read (WOLFSSL *ssl, char *buf, int sz, void *ctx) |
Callback function to handle TLS WolfSSL read requests. More... | |
int | he_wolf_tls_write (WOLFSSL *ssl, char *buf, int sz, void *ctx) |
Functions for interfacing with WolfSSL.
int he_internal_write_packet_header | ( | he_conn_t * | conn, |
he_wire_hdr_t * | hdr | ||
) |
Write the packet header into the header buffer.
conn | A pointer to a valid conn context |
hdr | A pointer to the header buffer to initialise |
int he_wolf_dtls_read | ( | WOLFSSL * | ssl, |
char * | buf, | ||
int | sz, | ||
void * | ctx | ||
) |
Callback function to handle WolfSSL read requests.
ssl | A pointer to the WolfSSL session that this callback relates to |
buf | A pointer to the buffer the callback writes data to |
sz | The maximum size that can be written to the buffer |
ctx | A pointer to the Helium context that this callback relates to |
Helium does not know about sockets and as such, neither can WolfSSL. Helium overrides the standard socket calls with its own callback functions.
This function simply copies data to WolfSSL's buffer and returns
int he_wolf_dtls_write | ( | WOLFSSL * | ssl, |
char * | buf, | ||
int | sz, | ||
void * | ctx | ||
) |
Callback function to handle WolfSSL write requests.
ssl | A pointer to the WolfSSL session that this callback relates to |
buf | A pointer to the buffer the callback reads data from |
sz | The size of the data to be read |
ctx | A pointer to the Helium context that this callback relates to |
Helium does not know about sockets and as such, neither can WolfSSL. Helium overrides the standard socket calls with its own callback functions.
This function simply calls the user provided write callback
int he_wolf_tls_read | ( | WOLFSSL * | ssl, |
char * | buf, | ||
int | sz, | ||
void * | ctx | ||
) |
Callback function to handle TLS WolfSSL read requests.
ssl | A pointer to the WolfSSL session that this callback relates to |
buf | A pointer to the buffer the callback writes data to |
sz | The maximum size that can be written to the buffer |
ctx | A pointer to the Helium context that this callback relates to |
Helium does not know about sockets and as such, neither can WolfSSL. Helium overrides the standard socket calls with its own callback functions.
This function simply copies data to WolfSSL's buffer and returns