Lines Matching refs:tls_context

127 __net_socket struct tls_context {  struct
249 static struct tls_context tls_contexts[CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS]; argument
278 return PART_OF_ARRAY(tls_contexts, (struct tls_context *)obj); in net_socket_is_tls()
339 static int dtls_get_remaining_timeout(struct tls_context *ctx) in dtls_get_remaining_timeout()
381 static inline bool is_handshake_complete(struct tls_context *ctx) in is_handshake_complete()
440 static struct tls_context *tls_alloc(void) in tls_alloc()
443 struct tls_context *tls = NULL; in tls_alloc()
496 static struct tls_context *tls_clone(struct tls_context *source_tls) in tls_clone()
498 struct tls_context *target_tls; in tls_clone()
522 static int tls_release(struct tls_context *tls) in tls_release()
665 static void tls_session_store(struct tls_context *context, in tls_session_store()
695 static void tls_session_restore(struct tls_context *context, in tls_session_restore()
816 static void ctx_set_lock(struct tls_context *ctx, struct k_mutex *lock) in ctx_set_lock()
822 static bool dtls_is_peer_addr_valid(struct tls_context *context, in dtls_is_peer_addr_valid()
833 static void dtls_peer_address_set(struct tls_context *context, in dtls_peer_address_set()
843 static void dtls_peer_address_get(struct tls_context *context, in dtls_peer_address_get()
855 struct tls_context *tls_ctx = ctx; in dtls_tx()
874 struct tls_context *tls_ctx = ctx; in dtls_rx()
917 struct tls_context *tls_ctx = ctx; in tls_tx()
935 struct tls_context *tls_ctx = ctx; in tls_rx()
959 static int tls_add_ca_certificate(struct tls_context *tls, in tls_add_ca_certificate()
986 static void tls_set_ca_chain(struct tls_context *tls) in tls_set_ca_chain()
995 static int tls_add_own_cert(struct tls_context *tls, in tls_add_own_cert()
1021 static int tls_set_own_cert(struct tls_context *tls) in tls_set_own_cert()
1036 static int tls_set_private_key(struct tls_context *tls, in tls_set_private_key()
1055 static int tls_set_psk(struct tls_context *tls, in tls_set_psk()
1074 static int tls_set_credential(struct tls_context *tls, in tls_set_credential()
1112 static int tls_mbedtls_set_credentials(struct tls_context *tls) in tls_mbedtls_set_credentials()
1162 static int tls_mbedtls_reset(struct tls_context *context) in tls_mbedtls_reset()
1189 static int tls_mbedtls_handshake(struct tls_context *context, in tls_mbedtls_handshake()
1288 static int tls_mbedtls_init(struct tls_context *context, bool is_server) in tls_mbedtls_init()
1455 static int tls_opt_sec_tag_list_set(struct tls_context *context, in tls_opt_sec_tag_list_set()
1480 static int sock_opt_protocol_get(struct tls_context *context, in sock_opt_protocol_get()
1494 static int tls_opt_sec_tag_list_get(struct tls_context *context, in tls_opt_sec_tag_list_get()
1512 static int tls_opt_hostname_set(struct tls_context *context, in tls_opt_hostname_set()
1530 static int tls_opt_ciphersuite_list_set(struct tls_context *context, in tls_opt_ciphersuite_list_set()
1558 static int tls_opt_ciphersuite_list_get(struct tls_context *context, in tls_opt_ciphersuite_list_get()
1590 static int tls_opt_ciphersuite_used_get(struct tls_context *context, in tls_opt_ciphersuite_used_get()
1609 static int tls_opt_alpn_list_set(struct tls_context *context, in tls_opt_alpn_list_set()
1639 static int tls_opt_dtls_handshake_timeout_get(struct tls_context *context, in tls_opt_dtls_handshake_timeout_get()
1658 static int tls_opt_dtls_handshake_timeout_set(struct tls_context *context, in tls_opt_dtls_handshake_timeout_set()
1691 static int tls_opt_dtls_connection_id_set(struct tls_context *context, in tls_opt_dtls_connection_id_set()
1740 static int tls_opt_dtls_connection_id_value_set(struct tls_context *context, in tls_opt_dtls_connection_id_value_set()
1762 static int tls_opt_dtls_connection_id_value_get(struct tls_context *context, in tls_opt_dtls_connection_id_value_get()
1780 static int tls_opt_dtls_peer_connection_id_value_get(struct tls_context *context, in tls_opt_dtls_peer_connection_id_value_get()
1802 static int tls_opt_dtls_connection_id_status_get(struct tls_context *context, in tls_opt_dtls_connection_id_status_get()
1852 static int tls_opt_dtls_handshake_on_connect_set(struct tls_context *context, in tls_opt_dtls_handshake_on_connect_set()
1871 static int tls_opt_dtls_handshake_on_connect_get(struct tls_context *context, in tls_opt_dtls_handshake_on_connect_get()
1885 static int tls_opt_alpn_list_get(struct tls_context *context, in tls_opt_alpn_list_get()
1914 static int tls_opt_session_cache_set(struct tls_context *context, in tls_opt_session_cache_set()
1932 static int tls_opt_session_cache_get(struct tls_context *context, in tls_opt_session_cache_get()
1948 static int tls_opt_session_cache_purge_set(struct tls_context *context, in tls_opt_session_cache_purge_set()
1960 static int tls_opt_peer_verify_set(struct tls_context *context, in tls_opt_peer_verify_set()
1986 static int tls_opt_cert_nocopy_set(struct tls_context *context, in tls_opt_cert_nocopy_set()
2011 static int tls_opt_dtls_role_set(struct tls_context *context, in tls_opt_dtls_role_set()
2070 struct tls_context *ctx; in ztls_socket()
2111 int ztls_close_ctx(struct tls_context *ctx, int sock) in ztls_close_ctx()
2139 int ztls_connect_ctx(struct tls_context *ctx, const struct sockaddr *addr, in ztls_connect_ctx()
2210 int ztls_accept_ctx(struct tls_context *parent, struct sockaddr *addr, in ztls_accept_ctx()
2213 struct tls_context *child = NULL; in ztls_accept_ctx()
2277 static ssize_t send_tls(struct tls_context *ctx, const void *buf, in send_tls()
2357 static ssize_t sendto_dtls_client(struct tls_context *ctx, const void *buf, in sendto_dtls_client()
2417 static ssize_t sendto_dtls_server(struct tls_context *ctx, const void *buf, in sendto_dtls_server()
2441 ssize_t ztls_sendto_ctx(struct tls_context *ctx, const void *buf, size_t len, in ztls_sendto_ctx()
2466 static ssize_t dtls_sendmsg_merge_and_send(struct tls_context *ctx, in dtls_sendmsg_merge_and_send()
2501 static ssize_t tls_sendmsg_loop_and_send(struct tls_context *ctx, in tls_sendmsg_loop_and_send()
2533 ssize_t ztls_sendmsg_ctx(struct tls_context *ctx, const struct msghdr *msg, in ztls_sendmsg_ctx()
2569 static ssize_t recv_tls(struct tls_context *ctx, void *buf, in recv_tls()
2670 static ssize_t recvfrom_dtls_common(struct tls_context *ctx, void *buf, in recvfrom_dtls_common()
2777 static ssize_t recvfrom_dtls_client(struct tls_context *ctx, void *buf, in recvfrom_dtls_client()
2843 static ssize_t recvfrom_dtls_server(struct tls_context *ctx, void *buf, in recvfrom_dtls_server()
2945 ssize_t ztls_recvfrom_ctx(struct tls_context *ctx, void *buf, size_t max_len, in ztls_recvfrom_ctx()
2979 static int ztls_poll_prepare_pollin(struct tls_context *ctx) in ztls_poll_prepare_pollin()
2994 static int ztls_poll_prepare_ctx(struct tls_context *ctx, in ztls_poll_prepare_ctx()
3053 static int ztls_socket_data_check(struct tls_context *ctx) in ztls_socket_data_check()
3144 static int ztls_poll_update_pollin(int fd, struct tls_context *ctx, in ztls_poll_update_pollin()
3208 static int ztls_poll_update_ctx(struct tls_context *ctx, in ztls_poll_update_ctx()
3281 static bool poll_offload_dtls_client_retry(struct tls_context *ctx, in poll_offload_dtls_client_retry()
3355 fds[i].fd = ((struct tls_context *)ctx)->sock; in ztls_poll_offload()
3432 int ztls_getsockopt_ctx(struct tls_context *ctx, int level, int optname, in ztls_getsockopt_ctx()
3558 int ztls_setsockopt_ctx(struct tls_context *ctx, int level, int optname, in ztls_setsockopt_ctx()
3666 struct tls_context *ctx; in ztls_get_mbedtls_ssl_context()
3691 struct tls_context *ctx = obj; in tls_sock_ioctl_vmeth()
3771 struct tls_context *ctx = obj; in tls_sock_shutdown_vmeth()
3779 struct tls_context *ctx = obj; in tls_sock_bind_vmeth()
3792 struct tls_context *ctx = obj; in tls_sock_listen_vmeth()
3847 struct tls_context *ctx = obj; in tls_sock_getpeername_vmeth()
3855 struct tls_context *ctx = obj; in tls_sock_getsockname_vmeth()