open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
mbedtls_sockets.h File Reference
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <mbedtls/error.h>
#include <mbedtls/entropy.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/net_sockets.h>
#include <mbedtls/ssl.h>

Go to the source code of this file.

Data Structures

struct  mbedtls_context
 

Macros

#define MBEDTLS_NET_POLL_READ   1
 
#define MBEDTLS_NET_POLL_WRITE   1
 

Functions

int mbedtls_net_poll (mbedtls_net_context *ctx, uint32_t rw, uint32_t timeout)
 
void failed (const char *fn, int rv)
 
void cert_verify_failed (uint32_t rv)
 
void open_nb_socket (struct mbedtls_context *ctx, const char *hostname, const char *port, const char *ca_file)
 

Macro Definition Documentation

◆ MBEDTLS_NET_POLL_READ

#define MBEDTLS_NET_POLL_READ   1

compat for older mbedtls

Definition at line 17 of file mbedtls_sockets.h.

Referenced by open_nb_socket().

◆ MBEDTLS_NET_POLL_WRITE

#define MBEDTLS_NET_POLL_WRITE   1

Definition at line 18 of file mbedtls_sockets.h.

Referenced by open_nb_socket().

Function Documentation

◆ mbedtls_net_poll()

int mbedtls_net_poll ( mbedtls_net_context * ctx,
uint32_t rw,
uint32_t timeout )

Definition at line 21 of file mbedtls_sockets.h.

Referenced by open_nb_socket().

◆ failed()

void failed ( const char * fn,
int rv )

Definition at line 46 of file mbedtls_sockets.h.

Referenced by open_nb_socket().

◆ cert_verify_failed()

void cert_verify_failed ( uint32_t rv)

Definition at line 53 of file mbedtls_sockets.h.

Referenced by open_nb_socket().

◆ open_nb_socket()

void open_nb_socket ( struct mbedtls_context * ctx,
const char * hostname,
const char * port,
const char * ca_file )

Definition at line 63 of file mbedtls_sockets.h.