118 #ifndef OPENSSL_NO_SRTP
129 "SRTP_AES128_CM_SHA1_80",
133 "SRTP_AES128_CM_SHA1_32",
149 static int find_profile_by_name(
char *profile_name,
154 p=srtp_known_profiles;
157 if((len == strlen(p->
name)) && !strncmp(p->
name,profile_name,
170 static int find_profile_by_num(
unsigned profile_num,
175 p=srtp_known_profiles;
178 if(p->
id == profile_num)
194 char *
ptr=(
char *)profiles_string;
208 if(!find_profile_by_name(ptr,&p,
209 col ? col-ptr : (
int)strlen(ptr)))
229 return ssl_ctx_make_profiles(profiles,&ctx->srtp_profiles);
234 return ssl_ctx_make_profiles(profiles,&s->srtp_profiles);
242 if(s->srtp_profiles != NULL)
244 return s->srtp_profiles;
246 else if((s->
ctx != NULL) &&
247 (s->
ctx->srtp_profiles != NULL))
249 return s->
ctx->srtp_profiles;
270 clnt=SSL_get_srtp_profiles(s);
281 if((2 + ct*2 + 1) > maxlen)
352 if(!find_profile_by_num(
id,&cprof))
373 srvr=SSL_get_srtp_profiles(s);
387 if(cprof->
id==sprof->
id)
462 clnt=SSL_get_srtp_profiles(s);