Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-18 08:41:08

0001 /*
0002  * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
0008  */
0009 
0010 /*
0011  * DTLS code by Eric Rescorla <ekr@rtfm.com>
0012  *
0013  * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc.
0014  */
0015 
0016 #ifndef OPENSSL_SRTP_H
0017 #define OPENSSL_SRTP_H
0018 #pragma once
0019 
0020 #include <openssl/macros.h>
0021 #ifndef OPENSSL_NO_DEPRECATED_3_0
0022 #define HEADER_D1_SRTP_H
0023 #endif
0024 
0025 #include <openssl/ssl.h>
0026 
0027 #ifdef __cplusplus
0028 extern "C" {
0029 #endif
0030 
0031 #define SRTP_AES128_CM_SHA1_80 0x0001
0032 #define SRTP_AES128_CM_SHA1_32 0x0002
0033 #define SRTP_AES128_F8_SHA1_80 0x0003
0034 #define SRTP_AES128_F8_SHA1_32 0x0004
0035 #define SRTP_NULL_SHA1_80 0x0005
0036 #define SRTP_NULL_SHA1_32 0x0006
0037 
0038 /* AEAD SRTP protection profiles from RFC 7714 */
0039 #define SRTP_AEAD_AES_128_GCM 0x0007
0040 #define SRTP_AEAD_AES_256_GCM 0x0008
0041 
0042 /* DOUBLE AEAD SRTP protection profiles from RFC 8723 */
0043 #define SRTP_DOUBLE_AEAD_AES_128_GCM_AEAD_AES_128_GCM 0x0009
0044 #define SRTP_DOUBLE_AEAD_AES_256_GCM_AEAD_AES_256_GCM 0x000A
0045 
0046 /* ARIA SRTP protection profiles from RFC 8269 */
0047 #define SRTP_ARIA_128_CTR_HMAC_SHA1_80 0x000B
0048 #define SRTP_ARIA_128_CTR_HMAC_SHA1_32 0x000C
0049 #define SRTP_ARIA_256_CTR_HMAC_SHA1_80 0x000D
0050 #define SRTP_ARIA_256_CTR_HMAC_SHA1_32 0x000E
0051 #define SRTP_AEAD_ARIA_128_GCM 0x000F
0052 #define SRTP_AEAD_ARIA_256_GCM 0x0010
0053 
0054 #ifndef OPENSSL_NO_SRTP
0055 
0056 __owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);
0057 __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles);
0058 
0059 __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);
0060 __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
0061 
0062 #endif
0063 
0064 #ifdef __cplusplus
0065 }
0066 #endif
0067 
0068 #endif