diff options
author | Wim Taymans <wtaymans@redhat.com> | 2014-06-24 09:34:50 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-06-24 09:34:50 +0200 |
commit | d676c568886b93ac53ddd4d557230735adfb0fee (patch) | |
tree | eef2b6663662fcda9f6f8f037bfb83f6278e5642 | |
parent | bf9a3efb5905bbea4199b48f929dfa4e38b393f3 (diff) |
sdp: hide key length defines
They don't have a namespace.
-rw-r--r-- | gst/rtsp-server/rtsp-client.c | 6 | ||||
-rw-r--r-- | gst/rtsp-server/rtsp-sdp.c | 6 | ||||
-rw-r--r-- | gst/rtsp-server/rtsp-sdp.h | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 3cbe67e..8aec8fe 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -1500,6 +1500,12 @@ make_server_transport (GstRTSPClient * client, GstRTSPContext * ctx, return st; } +#define AES_128_KEY_LEN 16 +#define AES_256_KEY_LEN 32 + +#define HMAC_32_KEY_LEN 4 +#define HMAC_80_KEY_LEN 10 + static gboolean mikey_apply_policy (GstCaps * caps, GstMIKEYMessage * msg, guint8 policy) { diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c index c4e74a3..5734278 100644 --- a/gst/rtsp-server/rtsp-sdp.c +++ b/gst/rtsp-server/rtsp-sdp.c @@ -30,6 +30,12 @@ #include "rtsp-sdp.h" +#define AES_128_KEY_LEN 16 +#define AES_256_KEY_LEN 32 + +#define HMAC_32_KEY_LEN 4 +#define HMAC_80_KEY_LEN 10 + static gboolean get_info_from_tags (GstPad * pad, GstEvent ** event, gpointer user_data) { diff --git a/gst/rtsp-server/rtsp-sdp.h b/gst/rtsp-server/rtsp-sdp.h index d0783a7..7732f36 100644 --- a/gst/rtsp-server/rtsp-sdp.h +++ b/gst/rtsp-server/rtsp-sdp.h @@ -27,12 +27,6 @@ G_BEGIN_DECLS -#define AES_128_KEY_LEN 16 -#define AES_256_KEY_LEN 32 - -#define HMAC_32_KEY_LEN 4 -#define HMAC_80_KEY_LEN 10 - typedef struct { gboolean is_ipv6; const gchar *server_ip; |