2010/6/20 Sergiy <piratfm(a)gmail.com>
>
>
> 2010/6/19 Howard Chu <hyc(a)highlandsun.com>
>
>
>> 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.
>>
>
>
> Ok, now it also works with PolarSSL & GnuTLS:
>
> There's no problems with PolarSSL.
>
> 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?
>
>
>
>> And I don't want to commit patches that introduce memory leaks.
>
>
>
> Fixed, when new app and tcUrl allocated, and library fails to connect, or
> publishing finished, then allocated data would be free.
>
> Please fix the leak and put some #ifdef's
>>
>
> done
>
>
What about this patch?