<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:PMingLiU}
@font-face
        {font-family:PMingLiU}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:PMingLiU}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 90.0pt 72.0pt 90.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="ZH-TW" link="blue" vlink="purple" style="">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        I want to create a rtsps server(using tls connection) without authentication,
</span></p>
<p class="MsoNormal"><span lang="EN-US">        so I modified test-video.c in gst-rtsp-server/examples/.</span></p>
<p class="MsoNormal"><span lang="EN-US">        </span></p>
<p class="MsoNormal"><span lang="EN-US">        I simply remove lines to add basic auth to server and permission to factory in test-video.c.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        And applying the following command to test server:</span></p>
<p class="MsoNormal"><span lang="EN-US">        gst-launch-1.0 rtspsrc location=rtsps://127.0.0.1:8554/test protocols=tcp tls-validation-flags=generic-error ! rtph264depay ! decodebin ! autovideosink</span></p>
<p class="MsoNormal"><span lang="EN-US">        </span></p>
<p class="MsoNormal"><span lang="EN-US">        But I got the following log :</span></p>
<p class="MsoNormal"><span lang="EN-US">        …</span></p>
<p class="MsoNormal"><span lang="EN-US">        ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unauthorized</span></p>
<p class="MsoNormal"><span lang="EN-US">        Additional debug info:</span></p>
<p class="MsoNormal"><span lang="EN-US">        ../gst/rtsp/gstrtspsrc.c(6652): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:</span></p>
<p class="MsoNormal"><span lang="EN-US">        Unauthorized (401)</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        The 401 Unauthorized response code is returned.</span></p>
<p class="MsoNormal"><span lang="EN-US">        It seems that if the GstRTSPAuth object is set to server(in order to set GTlsCertificate), the authentication will become necessary.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        Could tls connection can be enabled in gst-rtsp-server without setting basic/digest authentication?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,</span></p>
<p class="MsoNormal"><span lang="EN-US">Bruce<span style="color:#1F497D"></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
*** Confidentiality Note *** This e-mail message and any accompanying documents are for sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If
 you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
</body>
</html>