summaryrefslogtreecommitdiff
path: root/modules/libsrtp/sdes.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/libsrtp/sdes.h')
-rw-r--r--modules/libsrtp/sdes.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/libsrtp/sdes.h b/modules/libsrtp/sdes.h
new file mode 100644
index 0000000..66cc2f1
--- /dev/null
+++ b/modules/libsrtp/sdes.h
@@ -0,0 +1,22 @@
+/**
+ * @file sdes.h SDP Security Descriptions for Media Streams (RFC 4568) API
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
+
+
+struct crypto {
+ uint32_t tag;
+ struct pl suite;
+ struct pl key_method;
+ struct pl key_info;
+ struct pl lifetime; /* optional */
+ struct pl mki; /* optional */
+ struct pl sess_prms; /* optional */
+};
+
+extern const char sdp_attr_crypto[];
+
+int sdes_encode_crypto(struct sdp_media *m, uint32_t tag, const char *suite,
+ const char *key, size_t key_len);
+int sdes_decode_crypto(struct crypto *c, const char *val);