summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_srtp.c
diff options
context:
space:
mode:
authorlandry <>2021-06-11 15:28:14 +0000
committerlandry <>2021-06-11 15:28:14 +0000
commit8eb08269b2394f412e06e5fe98f463c2291efe8a (patch)
tree30aa842b7ca74087437856fd043acad5f005814d /src/lib/libssl/d1_srtp.c
parent7ca9aeeeb45847bc83fc6de845e2a5a1fe730838 (diff)
downloadopenbsd-8eb08269b2394f412e06e5fe98f463c2291efe8a.tar.gz
openbsd-8eb08269b2394f412e06e5fe98f463c2291efe8a.tar.bz2
openbsd-8eb08269b2394f412e06e5fe98f463c2291efe8a.zip
add AES-GCM constants from RFC 7714 for SRTP
SRTP_AEAD_AES_128_GCM/SRTP_AEAD_AES_256_GCM can be used as DTLS-SRTP protection profiles - seen with an update of telephony/baresip i'm working on. adapted from openssl commit 43e5faa2539ae8aae6ef55be2239b9b1a77fea45 ok tb@ jsing@
Diffstat (limited to 'src/lib/libssl/d1_srtp.c')
-rw-r--r--src/lib/libssl/d1_srtp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libssl/d1_srtp.c b/src/lib/libssl/d1_srtp.c
index cbdb4a6144..70f9453f5f 100644
--- a/src/lib/libssl/d1_srtp.c
+++ b/src/lib/libssl/d1_srtp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_srtp.c,v 1.28 2021/05/16 13:56:30 jsing Exp $ */ 1/* $OpenBSD: d1_srtp.c,v 1.29 2021/06/11 15:28:13 landry Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -136,6 +136,14 @@ static const SRTP_PROTECTION_PROFILE srtp_known_profiles[] = {
136 "SRTP_AES128_CM_SHA1_32", 136 "SRTP_AES128_CM_SHA1_32",
137 SRTP_AES128_CM_SHA1_32, 137 SRTP_AES128_CM_SHA1_32,
138 }, 138 },
139 {
140 "SRTP_AEAD_AES_128_GCM",
141 SRTP_AEAD_AES_128_GCM,
142 },
143 {
144 "SRTP_AEAD_AES_256_GCM",
145 SRTP_AEAD_AES_256_GCM,
146 },
139 {0} 147 {0}
140}; 148};
141 149