Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Unified Diff: srtp/include/srtp.h

Issue 2346813003: Add compatibility shims to libsrtp for v1->v2 transition (Closed)
Patch Set: Add kjellander Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « srtp/crypto/include/rdbx.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/include/srtp.h
diff --git a/srtp/include/srtp.h b/srtp/include/srtp.h
index b9bf1eb3745bbc5a02b3b8ff9fa586ca324308b1..89834b12011ab9f2a426a73ccff4bbc95068a95b 100644
--- a/srtp/include/srtp.h
+++ b/srtp/include/srtp.h
@@ -55,6 +55,21 @@ extern "C" {
#include "crypto_types.h"
#include "err.h"
+/*
+ * Compatibility shim for v1->v2 transition.
+ */
+
+#define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32 \
+ crypto_policy_set_aes_cm_128_hmac_sha1_32
+#define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80 \
+ crypto_policy_set_aes_cm_128_hmac_sha1_80
+#define srtp_crypto_policy_set_aes_gcm_128_16_auth \
+ crypto_policy_set_aes_gcm_128_16_auth
+#define srtp_crypto_policy_set_aes_gcm_256_16_auth \
+ crypto_policy_set_aes_gcm_256_16_auth
+
+#define srtp_ssrc_type_t ssrc_type_t
+
/**
* @defgroup SRTP Secure RTP
*
« no previous file with comments | « srtp/crypto/include/rdbx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698