Hi Everyone,

I am trying to work on a video streaming project which uses the motion software to stream images from a usb camera. By default the streaming is done in a non-secure manner.
So I installed Stunnel , generated a self signed certificate and I am not using it on top of the motion software to securely stream images.
Now, I want to know exactly how Stunnel encrypts/decrypts image data that is generated by motion? I know that motion sends the data on port 8081 and Stunnel tunnels it to another port 8443.
I can not understand where exactly the Openssl library functions are used to add the security feature in this scenario.
Can anyone with a better understanding throw some light on the same?

Thanks & Regards,
Vidya