Anjay Lite
Loading...
Searching...
No Matches
anj_tls.h
Go to the documentation of this file.
1/*
2 * Copyright 2023-2025 AVSystem <avsystem@avsystem.com>
3 * AVSystem Anjay Lite LwM2M SDK
4 * All rights reserved.
5 *
6 * Licensed under AVSystem Anjay Lite LwM2M Client SDK - Non-Commercial License.
7 * See the attached LICENSE file for details.
8 */
9
10#include <anj/init.h>
11
12#ifndef ANJ_TLS_H
13# define ANJ_TLS_H
14
15# ifdef __cplusplus
16extern "C" {
17# endif
18
19# ifdef ANJ_WITH_TLS_BINDING
20
22
23anj_net_get_system_socket_t anj_tls_get_system_socket;
24anj_net_close_t anj_tls_close;
25anj_net_connect_t anj_tls_connect;
26anj_net_create_ctx_t anj_tls_create_ctx;
27anj_net_send_t anj_tls_send;
28anj_net_recv_t anj_tls_recv;
29anj_net_shutdown_t anj_tls_shutdown;
30anj_net_cleanup_ctx_t anj_tls_cleanup_ctx;
31anj_net_reuse_last_port_t anj_tls_reuse_last_port;
32
33anj_net_get_bytes_received_t anj_tls_get_bytes_received;
34anj_net_get_bytes_sent_t anj_tls_bytes_sent;
35anj_net_get_connection_id_resumed_t anj_tls_get_connection_id_resumed;
36anj_net_get_inner_mtu_t anj_tls_get_inner_mtu;
37anj_net_get_session_resumed_t anj_tls_get_session_resumed;
38anj_net_get_state_t anj_tls_get_state;
39
40anj_net_set_dane_tlsa_array_t anj_tls_set_dane_tls_array;
41anj_net_set_tls_handshake_timeouts_t anj_tls_set_handshake_timeout;
42
43# endif // ANJ_WITH_TLS_BINDING
44
45# ifdef __cplusplus
46}
47# endif
48
49#endif // ANJ_TLS_H
int anj_net_get_state_t(anj_net_ctx_t *ctx, anj_net_socket_state_t *out_value)
Definition anj_net_api.h:616
int anj_net_close_t(anj_net_ctx_t *ctx)
Definition anj_net_api.h:606
int anj_net_shutdown_t(anj_net_ctx_t *ctx)
Definition anj_net_api.h:586
const void * anj_net_get_system_socket_t(anj_net_ctx_t *ctx)
Definition anj_net_api.h:421
int anj_net_get_bytes_received_t(anj_net_ctx_t *ctx, uint64_t *out_value)
Definition anj_net_api.h:649
int anj_net_reuse_last_port_t(anj_net_ctx_t *ctx)
Definition anj_net_api.h:564
int anj_net_get_bytes_sent_t(anj_net_ctx_t *ctx, uint64_t *out_value)
Definition anj_net_api.h:638
int anj_net_create_ctx_t(anj_net_ctx_t **ctx, const anj_net_config_t *config)
Definition anj_net_api.h:436
int anj_net_get_inner_mtu_t(anj_net_ctx_t *ctx, int32_t *out_value)
Definition anj_net_api.h:628
int anj_net_recv_t(anj_net_ctx_t *ctx, size_t *bytes_received, uint8_t *buf, size_t length)
Definition anj_net_api.h:542
int anj_net_cleanup_ctx_t(anj_net_ctx_t **ctx)
Definition anj_net_api.h:454
int anj_net_connect_t(anj_net_ctx_t *ctx, const char *hostname, const char *port)
Definition anj_net_api.h:480
int anj_net_send_t(anj_net_ctx_t *ctx, size_t *bytes_sent, const uint8_t *buf, size_t length)
Definition anj_net_api.h:509