summaryrefslogtreecommitdiff
path: root/include/openssl/srtp.h
diff options
context:
space:
mode:
authorPrimiano Tucci <primiano@google.com>2014-09-30 14:46:28 +0100
committerPrimiano Tucci <primiano@google.com>2014-09-30 14:46:28 +0100
commit7c4e52cd7aebb9f2fa64355c58bc75509685da94 (patch)
treebbdd45cda3f7f15eae3f9dfa9ac4d6a604d82479 /include/openssl/srtp.h
parent208436baefdf6180355219406c666c259c7fc450 (diff)
parent885164b8d921ef7dba08b9e5ae031bf7350bf4ff (diff)
downloadsrc-lollipop-mr1-cts-release.tar.gz
This commit was generated by merge_to_master.py. Change-Id: I9b1c013632df72dcd4e450d6a3b7749444191f77
Diffstat (limited to 'include/openssl/srtp.h')
-rw-r--r--include/openssl/srtp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/openssl/srtp.h b/include/openssl/srtp.h
index 3e29e5d..c11608e 100644
--- a/include/openssl/srtp.h
+++ b/include/openssl/srtp.h
@@ -130,9 +130,23 @@ extern "C" {
#define SRTP_NULL_SHA1_80 0x0005
#define SRTP_NULL_SHA1_32 0x0006
+/* SSL_CTX_set_tlsext_use_srtp enables SRTP for all SSL objects
+ * created from |ctx|. |profile| contains a colon-separated list of
+ * profile names. It returns zero on success and one on failure.
+ *
+ * WARNING: this function is dangerous because it breaks the usual
+ * return value convention. */
OPENSSL_EXPORT int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx,
const char *profiles);
+
+/* SSL_set_tlsext_use_srtp enables SRTP for |ssl| with a profile list.
+ * |profile| contains a colon-separated list of profile names. It
+ * returns zero on success and one on failure.
+ *
+ * WARNING: this function is dangerous because it breaks the usual
+ * return value convention. */
OPENSSL_EXPORT int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles);
+
OPENSSL_EXPORT SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
OPENSSL_EXPORT STACK_OF(SRTP_PROTECTION_PROFILE) *