Home
last modified time | relevance | path

Searched refs:cryptos (Results 1 – 9 of 9) sorted by relevance

/external/webrtc/talk/session/media/
Dmediasession.cc123 void AddMediaCryptos(const CryptoParamsVec& cryptos, in AddMediaCryptos() argument
125 for (CryptoParamsVec::const_iterator crypto = cryptos.begin(); in AddMediaCryptos()
126 crypto != cryptos.end(); ++crypto) { in AddMediaCryptos()
133 CryptoParamsVec cryptos; in CreateMediaCryptos() local
136 if (!AddCryptoParams(*it, &cryptos)) { in CreateMediaCryptos()
140 AddMediaCryptos(cryptos, media); in CreateMediaCryptos()
149 return &media->cryptos(); in GetCryptos()
152 bool FindMatchingCrypto(const CryptoParamsVec& cryptos, in FindMatchingCrypto() argument
155 for (CryptoParamsVec::const_iterator it = cryptos.begin(); in FindMatchingCrypto()
156 it != cryptos.end(); ++it) { in FindMatchingCrypto()
[all …]
Dmediasession_unittest.cc46 ASSERT_EQ(s, cd->cryptos().size()); \
47 ASSERT_EQ(std::string(cs), cd->cryptos()[0].cipher_suite)
51 ASSERT_EQ(0U, cd->cryptos().size());
407 EXPECT_TRUE(CompareCryptoParams(audio_media_desc->cryptos(), in TestCryptoWithBundle()
408 video_media_desc->cryptos())); in TestCryptoWithBundle()
409 EXPECT_EQ(1u, audio_media_desc->cryptos().size()); in TestCryptoWithBundle()
411 audio_media_desc->cryptos()[0].cipher_suite); in TestCryptoWithBundle()
419 for (size_t i = 0; i < ref_audio_media_desc->cryptos().size(); ++i) { in TestCryptoWithBundle()
420 if (ref_audio_media_desc->cryptos()[i].Matches( in TestCryptoWithBundle()
421 audio_media_desc->cryptos()[0])) { in TestCryptoWithBundle()
[all …]
Dmediasession.h202 const std::vector<CryptoParams>& cryptos() const { return cryptos_; } in cryptos() function
206 void set_cryptos(const std::vector<CryptoParams>& cryptos) { in set_cryptos() argument
207 cryptos_ = cryptos; in set_cryptos()
Dchannel.cc1005 if (!SetSrtp_w(content->cryptos(), action, src, error_desc)) { in SetRtpTransportParameters_w()
1018 bool BaseChannel::CheckSrtpConfig(const std::vector<CryptoParams>& cryptos, in CheckSrtpConfig() argument
1022 if (*dtls && !cryptos.empty()) { in CheckSrtpConfig()
1030 bool BaseChannel::SetSrtp_w(const std::vector<CryptoParams>& cryptos, in SetSrtp_w() argument
1040 ret = CheckSrtpConfig(cryptos, &dtls, error_desc); in SetSrtp_w()
1049 ret = srtp_filter_.SetOffer(cryptos, src); in SetSrtp_w()
1056 ret = srtp_filter_.SetProvisionalAnswer(cryptos, src); in SetSrtp_w()
1063 ret = srtp_filter_.SetAnswer(cryptos, src); in SetSrtp_w()
Dchannel.h279 bool CheckSrtpConfig(const std::vector<CryptoParams>& cryptos,
/external/webrtc/talk/app/webrtc/
Dwebrtcsdp_unittest.cc757 EXPECT_EQ(cd1->cryptos().size(), cd2->cryptos().size()); in CompareMediaContentDescription()
758 if (cd1->cryptos().size() != cd2->cryptos().size()) { in CompareMediaContentDescription()
762 for (size_t i = 0; i< cd1->cryptos().size(); ++i) { in CompareMediaContentDescription()
763 const CryptoParams c1 = cd1->cryptos().at(i); in CompareMediaContentDescription()
764 const CryptoParams c2 = cd2->cryptos().at(i); in CompareMediaContentDescription()
Dwebrtcsession_unittest.cc661 ASSERT_EQ(1U, audio_content->cryptos().size()); in VerifyCryptoParams()
662 ASSERT_EQ(47U, audio_content->cryptos()[0].key_params.size()); in VerifyCryptoParams()
664 audio_content->cryptos()[0].cipher_suite); in VerifyCryptoParams()
674 ASSERT_EQ(1U, video_content->cryptos().size()); in VerifyCryptoParams()
676 video_content->cryptos()[0].cipher_suite); in VerifyCryptoParams()
677 ASSERT_EQ(47U, video_content->cryptos()[0].key_params.size()); in VerifyCryptoParams()
689 ASSERT_EQ(0U, audio_content->cryptos().size()); in VerifyNoCryptoParams()
697 ASSERT_EQ(0U, video_content->cryptos().size()); in VerifyNoCryptoParams()
Dwebrtcsdp.cc1419 media_desc->cryptos().begin(); in BuildRtpContentAttributes()
1420 it != media_desc->cryptos().end(); ++it) { in BuildRtpContentAttributes()
Dwebrtcsession.cc211 if (media->cryptos().empty()) { in VerifyCrypto()