Lines Matching refs:error
156 int error; member
1259 context->error = ETIMEDOUT; in tls_mbedtls_handshake()
1270 context->error = ECONNABORTED; in tls_mbedtls_handshake()
1278 context->error = ECONNABORTED; in tls_mbedtls_handshake()
2239 goto error; in ztls_connect_ctx()
2257 goto error; in ztls_connect_ctx()
2265 error: in ztls_connect_ctx()
2287 goto error; in ztls_accept_ctx()
2293 goto error; in ztls_accept_ctx()
2303 goto error; in ztls_accept_ctx()
2315 goto error; in ztls_accept_ctx()
2320 error: in ztls_accept_ctx()
2345 if (ctx->error != 0) { in send_tls()
2346 errno = ctx->error; in send_tls()
2402 ctx->error = ENOMEM; in send_tls()
2405 ctx->error = ECONNABORTED; in send_tls()
2430 goto error; in sendto_dtls_client()
2438 goto error; in sendto_dtls_client()
2444 goto error; in sendto_dtls_client()
2460 goto error; in sendto_dtls_client()
2464 ctx->error = 0; in sendto_dtls_client()
2472 error: in sendto_dtls_client()
2639 if (ctx->error != 0) { in recv_tls()
2640 errno = ctx->error; in recv_tls()
2740 if (ctx->error != 0) { in recvfrom_dtls_common()
2741 errno = ctx->error; in recvfrom_dtls_common()
2846 goto error; in recvfrom_dtls_client()
2859 ctx->error = ENOTCONN; in recvfrom_dtls_client()
2862 ctx->error = ENOMEM; in recvfrom_dtls_client()
2869 ctx->error = ETIMEDOUT; in recvfrom_dtls_client()
2888 ctx->error = ENOMEM; in recvfrom_dtls_client()
2891 ctx->error = ECONNABORTED; in recvfrom_dtls_client()
2898 error: in recvfrom_dtls_client()
2915 goto error; in recvfrom_dtls_server()
2950 ctx->error = 0; in recvfrom_dtls_server()
2971 ctx->error = ENOMEM; in recvfrom_dtls_server()
2988 ctx->error = ENOMEM; in recvfrom_dtls_server()
2991 ctx->error = ECONNABORTED; in recvfrom_dtls_server()
2999 error: in recvfrom_dtls_server()
3149 ctx->error = 0; in ztls_socket_data_check()
3248 ctx->error = -ret; in ztls_poll_update_pollin()
3519 if ((level == SOL_SOCKET) && (optname == SO_ERROR) && ctx->error != 0) { in ztls_getsockopt_ctx()
3525 *(int *)optval = ctx->error; in ztls_getsockopt_ctx()