Go to the documentation of this file.
127 using namespace bssl;
150 if (
len == strlen(
p->name) && !strncmp(
p->name, profile_name,
len)) {
162 const char *profiles_string,
166 if (profiles ==
nullptr) {
172 const char *
ptr = profiles_string;
174 col = strchr(
ptr,
':');
178 col ? (
size_t)(col -
ptr) : strlen(
ptr))) {
201 return ssl->
config !=
nullptr &&
206 if (ssl ==
nullptr) {
210 if (ssl->
config ==
nullptr) {
215 return ssl->
config->srtp_profiles !=
nullptr
216 ? ssl->
config->srtp_profiles.get()
217 : ssl->
ctx->srtp_profiles.get();
221 return ssl->
s3->srtp_profile;
#define SRTP_AEAD_AES_256_GCM
#define SRTP_AES128_CM_SHA1_80
const STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(const SSL *ssl)
const SRTP_PROTECTION_PROFILE * SSL_get_selected_srtp_profile(SSL *ssl)
#define OPENSSL_PUT_ERROR(library, reason)
bssl::UniquePtr< bssl::SSL_CONFIG > config
int SSL_CTX_set_srtp_profiles(SSL_CTX *ctx, const char *profiles)
#define sk_SRTP_PROTECTION_PROFILE_push
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles)
#define SRTP_AES128_CM_SHA1_32
#define sk_SRTP_PROTECTION_PROFILE_new_null
def profile(message_size, response_count)
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
int SSL_set_srtp_profiles(SSL *ssl, const char *profiles)
static int find_profile_by_name(const char *profile_name, const SRTP_PROTECTION_PROFILE **pptr, size_t len)
static const SRTP_PROTECTION_PROFILE kSRTPProfiles[]
#define SSL_get_srtp_profiles
#define SRTP_AEAD_AES_128_GCM
#define SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES
int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles)
static int ssl_ctx_make_profiles(const char *profiles_string, UniquePtr< STACK_OF(SRTP_PROTECTION_PROFILE)> *out)
bssl::UniquePtr< SSL_CTX > ctx
#define SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:08