summaryrefslogtreecommitdiff
path: root/src/lib/libssl/srtp.h
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/srtp.h
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/srtp.h')
-rw-r--r--src/lib/libssl/srtp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/srtp.h b/src/lib/libssl/srtp.h
index 6daa02a791..89ce862020 100644
--- a/src/lib/libssl/srtp.h
+++ b/src/lib/libssl/srtp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: srtp.h,v 1.6 2015/09/01 15:18:23 jsing Exp $ */ 1/* $OpenBSD: srtp.h,v 1.7 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 *
@@ -129,6 +129,10 @@ extern "C" {
129#define SRTP_NULL_SHA1_80 0x0005 129#define SRTP_NULL_SHA1_80 0x0005
130#define SRTP_NULL_SHA1_32 0x0006 130#define SRTP_NULL_SHA1_32 0x0006
131 131
132/* AEAD SRTP protection profiles from RFC 7714 */
133#define SRTP_AEAD_AES_128_GCM 0x0007
134#define SRTP_AEAD_AES_256_GCM 0x0008
135
132int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles); 136int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);
133int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles); 137int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles);
134 138