MbedTLS and net_socket.c

I want to using mbedTLS on Raw api with LWIP for TCP.
I am using stm32 microcontroller. But I’ve some tutorial questions about that,
How can I change net_socket.c file, this file include socket functions but I dont use bsd socket, I am using Raw api. How can I change the file properly, please help.

Is there any suggestion ?