<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Nur Text Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.NurTextZchn
{mso-style-name:"Nur Text Zchn";
mso-style-priority:99;
mso-style-link:"Nur Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-AT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-US">I use version live.2022.11.19.tar.gz. Compiled using config.linux-gdb (with -O0 for better debugging)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">On the server side I call<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">rtspServer->setTLSState(PATHNAME_TO_CERTIFICATE_FILE,PATHNAME_TO_PRIVATE_KEY_FILE,False,False);<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">like in testOnDemandRTSPServer.cpp.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Last 2 parameters False,False because i do not need rtsps/srtp, but https tunnelling.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">The Server works, I can receive video with some other software made by a colleague long ago..<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">On the Client side I call in gdb:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> openRTSP -T 8880 rtsps://localhost:5554/h265<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">in order to receive the stream via http over TLS.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">gdb ./openRTSP<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">GNU gdb (Gentoo 8.3.1 vanilla) 8.3.1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Copyright (C) 2019 Free Software Foundation, Inc.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">License GPLv3+: GNU GPL version 3 or later <</span><a href="http://gnu.org/licenses/gpl.html"><span lang="EN-US">http://gnu.org/licenses/gpl.html</span></a><span lang="EN-US">><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">This is free software: you are free to change and redistribute it.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">There is NO WARRANTY, to the extent permitted by law.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Type "show copying" and "show warranty" for details.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">This GDB was configured as "x86_64-pc-linux-gnu".<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Type "show configuration" for configuration details.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">For bug reporting instructions, please see:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><</span><a href="https://bugs.gentoo.org/"><span lang="EN-US">https://bugs.gentoo.org/</span></a><span lang="EN-US">>.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Find the GDB manual and other documentation resources online at:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <</span><a href="http://www.gnu.org/software/gdb/documentation/"><span lang="EN-US">http://www.gnu.org/software/gdb/documentation/</span></a><span lang="EN-US">>.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">For help, type "help".<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Type "apropos word" to search for commands related to "word"...<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Reading symbols from ./openRTSP...<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">(gdb) r -T 8880 rtsps://localhost:5554/h265 Starting program: /sdb3/JohannesGajdosikPKE/live.2022.11.19/testProgs/openRTSP -T 8880 rtsps://localhost:5554/h265 [Thread debugging using libthread_db enabled] Using host
libthread_db library "/lib64/libthread_db.so.1".<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Created new TCP socket 3 for connection<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Connecting to 127.0.0.1, port 8880 on socket 3...<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">...TLS connection completed<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">...remote connection opened<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Requesting RTSP-over-HTTP tunneling (on port 8880)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Sending request: GET /h265 HTTP/1.0<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">CSeq: 1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">User-Agent: /sdb3/JohannesGajdosikPKE/live.2022.11.19/testProgs/openRTSP (LIVE555 Streaming Media v2022.11.19)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Host: 127.0.0.1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">x-sessioncookie: 0ce20afb86b64c33db92c3c<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Accept: application/x-rtsp-tunnelled<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Pragma: no-cache<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Cache-Control: no-cache<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Received 143 new bytes of response data.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Received a complete GET response:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">HTTP/1.0 200 OK<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Date: Tue, Nov 29 2022 12:43:23 GMT<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Cache-Control: no-cache<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Pragma: no-cache<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Content-Type: application/x-rtsp-tunnelled<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Connecting to 127.0.0.1, port 8880 on socket 4...<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Sending request: POST /h265 HTTP/1.0<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">CSeq: 1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">User-Agent: /sdb3/JohannesGajdosikPKE/live.2022.11.19/testProgs/openRTSP (LIVE555 Streaming Media v2022.11.19)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Host: 127.0.0.1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">x-sessioncookie: 0ce20afb86b64c33db92c3c<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Content-Type: application/x-rtsp-tunnelled<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Pragma: no-cache<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Cache-Control: no-cache<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Content-Length: 32767<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Expires: Sun, 9 Jan 1972 00:00:00 GMT<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Program received signal SIGSEGV, Segmentation fault.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">0x00007ffff7f3380c in ssl_write_internal () from /usr/lib64/libssl.so.1.1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">(gdb) bt<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#0 0x00007ffff7f3380c in ssl_write_internal () from /usr/lib64/libssl.so.1.1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#1 0x00007ffff7f339a3 in SSL_write () from /usr/lib64/libssl.so.1.1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#2 0x000055555559cb9f in TLSState::write (this=0x55555562d958,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> data=0x55555566ae40 "POST /h265 HTTP/1.0\r\nCSeq: 1\r\nUser-Agent: /sdb3/JohannesGajdosikPKE/live.2022.11.19/testProgs/openRTSP (LIVE555 Streaming Media v2022.11.19)\r\nHost: 127.0.0.1\r\nx-sessioncookie: 0ce20afb86b64c33db92c3c\r"...,
count=352) at TLSState.cpp:45<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#3 0x0000555555589010 in RTSPClient::write (this=0x55555562d760,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> data=0x55555566ae40 "POST /h265 HTTP/1.0\r\nCSeq: 1\r\nUser-Agent: /sdb3/JohannesGajdosikPKE/live.2022.11.19/testProgs/openRTSP (LIVE555 Streaming Media v2022.11.19)\r\nHost: 127.0.0.1\r\nx-sessioncookie: 0ce20afb86b64c33db92c3c\r"...,
count=352) at RTSPClient.cpp:2023<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#4 0x000055555558330c in RTSPClient::sendRequest (this=0x55555562d760, request=0x555555658a40) at RTSPClient.cpp:581<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#5 0x000055555558740c in RTSPClient::setupHTTPTunneling2 (this=0x55555562d760) at RTSPClient.cpp:1610<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#6 0x000055555558760f in RTSPClient::connectionHandler1 (this=0x55555562d760) at RTSPClient.cpp:1642<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#7 0x0000555555587459 in RTSPClient::connectionHandler (instance=0x55555562d760) at RTSPClient.cpp:1615<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#8 0x00005555555e1a40 in BasicTaskScheduler::SingleStep (this=0x55555562ceb0, maxDelayTime=0) at BasicTaskScheduler.cpp:171<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#9 0x00005555555e4184 in BasicTaskScheduler0::doEventLoop (this=0x55555562ceb0, watchVariable=0x0) at BasicTaskScheduler0.cpp:80<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#10 0x000055555556e10c in main (argc=2, argv=0x7fffffffdfc8) at playCommon.cpp:654<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">(gdb) f 2<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#2 0x000055555559cb9f in TLSState::write (this=0x55555562d958,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> data=0x55555566ae40 "POST /h265 HTTP/1.0\r\nCSeq: 1\r\nUser-Agent: /sdb3/JohannesGajdosikPKE/live.2022.11.19/testProgs/openRTSP (LIVE555 Streaming Media v2022.11.19)\r\nHost: 127.0.0.1\r\nx-sessioncookie: 0ce20afb86b64c33db92c3c\r"...,
count=352) at TLSState.cpp:45<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">45 return SSL_write(fCon, data, count);<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">(gdb) p fCon<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">$1 = (SSL *) 0x0<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">(gdb) p *this<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">$2 = {_vptr.TLSState = 0x55555560c620 <vtable for ClientTLSState+16>, isNeeded = 1 '\001', fHasBeenSetup = 0 '\000', fCtx = 0x0, fCon = 0x0}<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">the crash is quite obvious: The TLSState is not initialized and fCon==nullptr.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">On the other hand, when calling<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> rtspServer->setTLSState(PATHNAME_TO_CERTIFICATE_FILE,PATHNAME_TO_PRIVATE_KEY_FILE,True);<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">on the server side, I can receive the stream vi RTSPS/SRTP by calling "openRTSP rtsps://localhost:5554/h265".<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Which is good in itself, but I want https.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Maybe I have called openRTSP in a wrong way, please help!<o:p></o:p></span></p>
<p class="MsoPlainText">Yours, Johannes<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>