Hello,
 
I want to make my network connection encrypted/secure using ssh.
 
At the moment I open a socket in my embedded device, so that an client (PC) is 
able to connect to it:
 
//initialization of the socket
handle = socket(AF_INET, SOCK_STREAM, 0);
serv_addr.sin_family = AF_INET;
serv_addr.sin_add.s_addr = htonl(INADDR_ANY);
serv_addr.sin_port = htons(10001);
 
bind(handle, &serv_adr, size_of(serv_adr));
listen(handle, 0);
 
In my communication thread I have the functions 
- accept
- read
- write
- close
 
How is it possible to make my network secure via ssl and the sockets used in 
the sample code...
 
Thank you very very much
 
Manuel Sahm

Reply via email to