<br><div class="gmail_quote">2010/6/20 Sergiy <span dir="ltr"><<a href="mailto:piratfm@gmail.com">piratfm@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote">2010/6/19 Howard Chu <span dir="ltr"><<a href="mailto:hyc@highlandsun.com" target="_blank">hyc@highlandsun.com</a>></span><div class="im"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Your patch only works with OpenSSL, we'll need to rewrite a fair bit of it to make it portable across GnuTLS and PolarSSL too.<br></blockquote></div><div><br><br>Ok, now it also works with PolarSSL & GnuTLS:<br><br>
There's no problems with PolarSSL.<br>
<br>But, unfortunaly GnuTLS don't have MD5 function in native API, so I have to use gnutls-openssl api, that have MD5(). Also there's two base64 encoders in GnuTLS , but they are non-standard, that's why in this case i wrote simple base64 encoder inside rtmp.c. Maybe I have to move it somewhere (to rtmp_sys.c for example), and there we can also implement MD5, so there's no need in any crypto-lib for publisher auth?<br>
<br> </div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
And I don't want to commit patches that introduce memory leaks.</blockquote></div><div><br><br>Fixed, when new app and tcUrl allocated, and library fails to connect, or publishing finished, then allocated data would <span><span title="">be free</span></span>.<br>
<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Please fix the leak and put some #ifdef's<br></blockquote></div>
<div><br>done <br></div>
</div><br>
</blockquote></div><br>What about this patch?<br><br>