mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
rtspconnection: don't use GLib-2.18 function
g_checksum_reset() was added only in GLib 2.18, but we still require only 2.16, so work around that if we only have 2.16. Fixes #591357.
This commit is contained in:
parent
11ad341d35
commit
cb19626c8c
1 changed files with 5 additions and 0 deletions
|
@ -920,7 +920,12 @@ auth_digest_compute_response (const gchar * method,
|
||||||
memcpy (hex_a2, digest_string, strlen (digest_string));
|
memcpy (hex_a2, digest_string, strlen (digest_string));
|
||||||
|
|
||||||
/* compute KD */
|
/* compute KD */
|
||||||
|
#if GLIB_CHECK_VERSION (2, 18, 0)
|
||||||
g_checksum_reset (md5_context);
|
g_checksum_reset (md5_context);
|
||||||
|
#else
|
||||||
|
g_checksum_free (md5_context);
|
||||||
|
md5_context = g_checksum_new (G_CHECKSUM_MD5);
|
||||||
|
#endif
|
||||||
g_checksum_update (md5_context, (const guchar *) hex_a1, strlen (hex_a1));
|
g_checksum_update (md5_context, (const guchar *) hex_a1, strlen (hex_a1));
|
||||||
g_checksum_update (md5_context, (const guchar *) ":", 1);
|
g_checksum_update (md5_context, (const guchar *) ":", 1);
|
||||||
g_checksum_update (md5_context, (const guchar *) nonce, strlen (nonce));
|
g_checksum_update (md5_context, (const guchar *) nonce, strlen (nonce));
|
||||||
|
|
Loading…
Reference in a new issue