]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/srtp.h
Copyright consolidation 03/10
[thirdparty/openssl.git] / include / openssl / srtp.h
CommitLineData
21dcbebc
RS
1/*
2 * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.
333f926d 3 *
21dcbebc
RS
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
333f926d 8 */
21dcbebc 9
333f926d 10/*
0f113f3e
MC
11 * DTLS code by Eric Rescorla <ekr@rtfm.com>
12 *
13 * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc.
14 */
333f926d
BL
15
16#ifndef HEADER_D1_SRTP_H
0f113f3e 17# define HEADER_D1_SRTP_H
333f926d 18
0f113f3e 19# include <openssl/ssl.h>
f6720383 20
333f926d
BL
21#ifdef __cplusplus
22extern "C" {
23#endif
24
0f113f3e
MC
25# define SRTP_AES128_CM_SHA1_80 0x0001
26# define SRTP_AES128_CM_SHA1_32 0x0002
27# define SRTP_AES128_F8_SHA1_80 0x0003
28# define SRTP_AES128_F8_SHA1_32 0x0004
29# define SRTP_NULL_SHA1_80 0x0005
30# define SRTP_NULL_SHA1_32 0x0006
333f926d 31
43e5faa2
DS
32/* AEAD SRTP protection profiles from RFC 7714 */
33# define SRTP_AEAD_AES_128_GCM 0x0007
34# define SRTP_AEAD_AES_256_GCM 0x0008
35
0f113f3e 36# ifndef OPENSSL_NO_SRTP
3dd814ac 37
4bcdb4a6
MC
38__owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);
39__owur int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles);
333f926d 40
4bcdb4a6
MC
41__owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);
42__owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
333f926d 43
0f113f3e 44# endif
3dd814ac 45
333f926d
BL
46#ifdef __cplusplus
47}
48#endif
49
50#endif