Functions | Variables
d1_srtp.cc File Reference
#include <openssl/ssl.h>
#include <string.h>
#include <openssl/bytestring.h>
#include <openssl/err.h>
#include "internal.h"
Include dependency graph for d1_srtp.cc:

Go to the source code of this file.

Functions

static int find_profile_by_name (const char *profile_name, const SRTP_PROTECTION_PROFILE **pptr, size_t len)
 
static int ssl_ctx_make_profiles (const char *profiles_string, UniquePtr< STACK_OF(SRTP_PROTECTION_PROFILE)> *out)
 
int SSL_CTX_set_srtp_profiles (SSL_CTX *ctx, const char *profiles)
 
int SSL_CTX_set_tlsext_use_srtp (SSL_CTX *ctx, const char *profiles)
 
const SRTP_PROTECTION_PROFILESSL_get_selected_srtp_profile (SSL *ssl)
 
int SSL_set_srtp_profiles (SSL *ssl, const char *profiles)
 
int SSL_set_tlsext_use_srtp (SSL *ssl, const char *profiles)
 
const STACK_OF (SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(const SSL *ssl)
 

Variables

static const SRTP_PROTECTION_PROFILE kSRTPProfiles []
 

Function Documentation

◆ find_profile_by_name()

static int find_profile_by_name ( const char *  profile_name,
const SRTP_PROTECTION_PROFILE **  pptr,
size_t  len 
)
static

Definition at line 145 of file d1_srtp.cc.

◆ ssl_ctx_make_profiles()

static int ssl_ctx_make_profiles ( const char *  profiles_string,
UniquePtr< STACK_OF(SRTP_PROTECTION_PROFILE)> *  out 
)
static

Definition at line 161 of file d1_srtp.cc.

◆ SSL_CTX_set_srtp_profiles()

int SSL_CTX_set_srtp_profiles ( SSL_CTX ctx,
const char *  profiles 
)

Definition at line 196 of file d1_srtp.cc.

◆ SSL_CTX_set_tlsext_use_srtp()

int SSL_CTX_set_tlsext_use_srtp ( SSL_CTX ctx,
const char *  profiles 
)

Definition at line 224 of file d1_srtp.cc.

◆ SSL_get_selected_srtp_profile()

const SRTP_PROTECTION_PROFILE* SSL_get_selected_srtp_profile ( SSL ssl)

Definition at line 220 of file d1_srtp.cc.

◆ SSL_set_srtp_profiles()

int SSL_set_srtp_profiles ( SSL ssl,
const char *  profiles 
)

Definition at line 200 of file d1_srtp.cc.

◆ SSL_set_tlsext_use_srtp()

int SSL_set_tlsext_use_srtp ( SSL ssl,
const char *  profiles 
)

Definition at line 229 of file d1_srtp.cc.

◆ STACK_OF()

const STACK_OF ( SRTP_PROTECTION_PROFILE  ) const

Definition at line 205 of file d1_srtp.cc.

Variable Documentation

◆ kSRTPProfiles

const SRTP_PROTECTION_PROFILE kSRTPProfiles[]
static
Initial value:
= {
{
"SRTP_AES128_CM_SHA1_80", SRTP_AES128_CM_SHA1_80,
},
{
"SRTP_AES128_CM_SHA1_32", SRTP_AES128_CM_SHA1_32,
},
{
"SRTP_AEAD_AES_128_GCM", SRTP_AEAD_AES_128_GCM,
},
{
"SRTP_AEAD_AES_256_GCM", SRTP_AEAD_AES_256_GCM,
},
{0, 0},
}

Definition at line 129 of file d1_srtp.cc.

SRTP_AEAD_AES_256_GCM
#define SRTP_AEAD_AES_256_GCM
Definition: ssl.h:3073
SRTP_AES128_CM_SHA1_80
#define SRTP_AES128_CM_SHA1_80
Definition: ssl.h:3066
SRTP_AES128_CM_SHA1_32
#define SRTP_AES128_CM_SHA1_32
Definition: ssl.h:3067
SRTP_AEAD_AES_128_GCM
#define SRTP_AEAD_AES_128_GCM
Definition: ssl.h:3072


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:09