Description
Hi,
I'm working on enabling streaming with TLS, but I'm encountering issues with the proper initialization.
OS:ubuntu 22.04
server pipeline:
sudo ./v4l2rtspserver /dev/video0 -fMJPG -W1920 -H1080 -P443 -F60 -u routecam -x server.includesprivatekey.pem
client pipeline:
gst-launch-1.0 rtspsrc location=rtsps://192.168.1.126:443/routecam tls-validation-flags=generic-error protocols=tls latency=0 ! rtpjpegdepay ! jpegdec ! videoconvert ! fpsdisplaysink
While debugging, we identified that the issue occurs because the fTLS.tlsAcceptIsNeeded flag is being set to True even after it has been set to False following the SSL acceptance in the call acceptResult = fInputTLS->accept(fOurSocket);.
The following functions are repeatedly setting the flag. Could you clarify why this function is being called multiple times? what could be the reason
GenericMediaServer::ClientConnection
::ClientConnection(GenericMediaServer& ourServer,
int clientSocket, struct sockaddr_storage const& clientAddr,
Boolean useTLS)
On the client side, this issue keeps recurring.
Progress: (open) Retrieving media info
Progress: (connect) Connecting to rtsps://192.168.1.126:443/routecam
I have attached the client-side log and the Wireshark log to help you better understand the issue.
tls_failre.zip
Regards,
Manikandan