ArmSys Support
ArmsysApi  0.12.18
BSocketTls.cpp File Reference
#include <BSocketTls.h>
#include <BDebug.h>
#include <string.h>
#include <stdint.h>
#include "lwip/dhcp.h"
#include "lwip/tcpip.h"
#include "lwip/ip_addr.h"
#include "lwip/netdb.h"
#include "lwip/sockets.h"

Macros

#define BDEBUGL1   1
 
#define BDEBUGL2   0
 

Functions

void rngInit ()
 
static int net_would_block (const mbedtls_net_context *ctx)
 
int mbedtls_net_connect (mbedtls_net_context *ctx, const char *host, const char *port, int proto)
 
int mbedtls_net_set_block (mbedtls_net_context *ctx)
 
int mbedtls_net_set_nonblock (mbedtls_net_context *ctx)
 
void mbedtls_net_usleep (unsigned long usec)
 
int mbedtls_net_recv (void *ctx, unsigned char *buf, size_t len)
 
int mbedtls_net_recv_timeout (void *ctx, unsigned char *buf, size_t len, uint32_t timeout)
 
int mbedtls_net_send (void *ctx, const unsigned char *buf, size_t len)
 
int mbedtls_hardware_poll (void *Data, unsigned char *Output, size_t Len, size_t *oLen)
 

Variables

static Bool rngInitDone
 
static RNG_HandleTypeDef RngHandle
 

Macro Definition Documentation

◆ BDEBUGL1

#define BDEBUGL1   1

◆ BDEBUGL2

#define BDEBUGL2   0

Function Documentation

◆ mbedtls_hardware_poll()

int mbedtls_hardware_poll ( void *  Data,
unsigned char *  Output,
size_t  Len,
size_t *  oLen 
)

◆ mbedtls_net_connect()

int mbedtls_net_connect ( mbedtls_net_context *  ctx,
const char *  host,
const char *  port,
int  proto 
)

◆ mbedtls_net_recv()

int mbedtls_net_recv ( void *  ctx,
unsigned char *  buf,
size_t  len 
)

◆ mbedtls_net_recv_timeout()

int mbedtls_net_recv_timeout ( void *  ctx,
unsigned char *  buf,
size_t  len,
uint32_t  timeout 
)

◆ mbedtls_net_send()

int mbedtls_net_send ( void *  ctx,
const unsigned char *  buf,
size_t  len 
)

◆ mbedtls_net_set_block()

int mbedtls_net_set_block ( mbedtls_net_context *  ctx)

◆ mbedtls_net_set_nonblock()

int mbedtls_net_set_nonblock ( mbedtls_net_context *  ctx)

◆ mbedtls_net_usleep()

void mbedtls_net_usleep ( unsigned long  usec)

◆ net_would_block()

static int net_would_block ( const mbedtls_net_context *  ctx)
static

◆ rngInit()

void rngInit ( )

Variable Documentation

◆ RngHandle

RNG_HandleTypeDef RngHandle
static

◆ rngInitDone

Bool rngInitDone
static