GnuTLS API changed for gnutls_calc_dh_secret()
Since GnuTLS does not have an include-file in the /usr/include/-directory, there is a extern MP_t gnutls_calc_dh_secret(MP_t *priv, MP_t g, MP_t p); in the librtmp/dh.h. Now that the new function declaration is: *int gnutls_calc_dh_secret (bigint_t*ret_y, bigint_t * ret_x, bigint_t g, bigint_t prime, unsigned int q_bits) It makes RTMPDump barf a core on runtime. It compiles, as everything is ultimately declared as a void*, but the structures have changed internally. I'm sorry, I don't have a fix for that. Regards, Jari Turkia
On Mon, 15 Jul 2013, Jari Turkia wrote:
Since GnuTLS does not have an include-file in the /usr/include/-directory,
It sure does have an include file
there is a extern MP_t gnutls_calc_dh_secret(MP_t *priv, MP_t g, MP_t p); in the librtmp/dh.h. Now that the new function declaration is: *int gnutls_calc_dh_secret (bigint_t*ret_y, bigint_t * ret_x, bigint_t g, bigint_t prime, unsigned int q_bits)
The problem is that rtmpdump used this function even though it was not a public official gnutls function, and thus it can change at any time - which it did now.
It makes RTMPDump barf a core on runtime. It compiles, as everything is ultimately declared as a void*, but the structures have changed internally.
I'm sorry, I don't have a fix for that.
This should be fixed in git now. // Martin
On 19.7.2013 15:49, Martin Storsjö wrote:
Since GnuTLS does not have an include-file in the /usr/include/-directory, It sure does have an include file Sorry, my mistake. I failed to convey my thoughts into writing here. :) It does have the files in /usr/include, but they do not have the gnutls_calc_dh_secret() function publicly defined there.
This should be fixed in git now. Excellent! I can confirm that my build does work with GnuTLS now. Thank you!
Regards, Jari Turkia
participants (2)
-
Jari Turkia -
Martin Storsjö