Home
last modified time | relevance | path

Searched refs:SSLIdentity (Results 1 – 25 of 35) sorted by relevance

12

/external/webrtc/webrtc/base/
Dsslidentity_unittest.cc18 using rtc::SSLIdentity;
73 identity_rsa1_.reset(SSLIdentity::Generate("test1", rtc::KT_RSA)); in SetUp()
74 identity_rsa2_.reset(SSLIdentity::Generate("test2", rtc::KT_RSA)); in SetUp()
75 identity_ecdsa1_.reset(SSLIdentity::Generate("test3", rtc::KT_ECDSA)); in SetUp()
76 identity_ecdsa2_.reset(SSLIdentity::Generate("test4", rtc::KT_ECDSA)); in SetUp()
114 const SSLIdentity* identity, in TestDigestHelper()
177 rtc::scoped_ptr<SSLIdentity> identity_rsa1_;
178 rtc::scoped_ptr<SSLIdentity> identity_rsa2_;
179 rtc::scoped_ptr<SSLIdentity> identity_ecdsa1_;
180 rtc::scoped_ptr<SSLIdentity> identity_ecdsa2_;
[all …]
Dsslidentity.h184 class SSLIdentity {
191 static SSLIdentity* Generate(const std::string& common_name,
193 static SSLIdentity* Generate(const std::string& common_name, in Generate()
199 static SSLIdentity* GenerateForTest(const SSLIdentityParams& params);
202 static SSLIdentity* FromPEMStrings(const std::string& private_key,
205 virtual ~SSLIdentity() {} in ~SSLIdentity()
211 virtual SSLIdentity* GetReference() const = 0;
Drtccertificate.h28 static scoped_refptr<RTCCertificate> Create(scoped_ptr<SSLIdentity> identity);
41 SSLIdentity* identity() const { return identity_.get(); } in identity()
44 explicit RTCCertificate(SSLIdentity* identity);
50 scoped_ptr<SSLIdentity> identity_;
Dsslidentity.cc91 bool SSLIdentity::PemToDer(const std::string& pem_type, in PemToDer()
116 std::string SSLIdentity::DerToPem(const std::string& pem_type, in DerToPem()
161 SSLIdentity* SSLIdentity::Generate(const std::string& common_name, in Generate()
166 SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) { in GenerateForTest()
170 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings()
Drtccertificate_unittests.cc80 scoped_ptr<SSLIdentity> identity(SSLIdentity::GenerateForTest(params)); in GenerateCertificateWithExpires()
88 scoped_ptr<SSLIdentity> identity( in TEST_F()
89 SSLIdentity::Generate(kTestCertCommonName, KeyParams::ECDSA())); in TEST_F()
Drtccertificate.cc18 scoped_ptr<SSLIdentity> identity) { in Create()
22 RTCCertificate::RTCCertificate(SSLIdentity* identity) in RTCCertificate()
Dsslstreamadapterhelper.h33 void SetIdentity(SSLIdentity* identity) override;
91 scoped_ptr<SSLIdentity> identity_;
Dopensslidentity.h102 class OpenSSLIdentity : public SSLIdentity {
107 static SSLIdentity* FromPEMStrings(const std::string& private_key,
Dfakesslidentity.h47 VERIFY(SSLIdentity::PemToDer(kPemTypeCertificate, data_, &der_string)); in ToDER()
93 class FakeSSLIdentity : public rtc::SSLIdentity {
Dsslstreamadapter_unittest.cc266 client_identity_ = rtc::SSLIdentity::FromPEMStrings( in SetUp()
269 client_identity_ = rtc::SSLIdentity::Generate("client", client_key_type_); in SetUp()
271 server_identity_ = rtc::SSLIdentity::Generate("server", server_key_type_); in SetUp()
303 client_identity_ = rtc::SSLIdentity::GenerateForTest(client_params); in ResetIdentitiesWithValidity()
310 server_identity_ = rtc::SSLIdentity::GenerateForTest(server_params); in ResetIdentitiesWithValidity()
524 rtc::SSLIdentity *client_identity_; // freed by client_ssl_ destructor
525 rtc::SSLIdentity *server_identity_; // freed by server_ssl_ destructor
Dsslfingerprint.h26 const rtc::SSLIdentity* identity);
Dssladapter_unittest.cc137 ssl_identity_.reset(rtc::SSLIdentity::Generate(GetHostname(), key_params)); in SSLAdapterTestDummyServer()
265 rtc::scoped_ptr<rtc::SSLIdentity> ssl_identity_;
Dsslstreamadapter.h97 virtual void SetIdentity(SSLIdentity* identity) = 0;
Dsslfingerprint.cc23 const std::string& algorithm, const rtc::SSLIdentity* identity) { in Create()
Dsslstreamadapterhelper.cc36 void SSLStreamAdapterHelper::SetIdentity(SSLIdentity* identity) { in SetIdentity()
Dopensslstreamadapter.h64 void SetIdentity(SSLIdentity* identity) override;
/external/webrtc/talk/app/webrtc/test/
Dfakedtlsidentitystore.h130 rtc::SSLIdentity::PemToDer("CERTIFICATE", kKeysAndCerts[0].cert_pem, &cert); in GenerateCertificate()
131 rtc::SSLIdentity::PemToDer("RSA PRIVATE KEY", in GenerateCertificate()
134 std::string pem_cert = rtc::SSLIdentity::DerToPem( in GenerateCertificate()
138 std::string pem_key = rtc::SSLIdentity::DerToPem( in GenerateCertificate()
142 rtc::scoped_ptr<rtc::SSLIdentity> identity( in GenerateCertificate()
143 rtc::SSLIdentity::FromPEMStrings(pem_key, pem_cert)); in GenerateCertificate()
168 rtc::SSLIdentity::PemToDer("CERTIFICATE", get_cert(), &cert); in OnMessage()
169 rtc::SSLIdentity::PemToDer("RSA PRIVATE KEY", get_key(), &key); in OnMessage()
/external/webrtc/talk/app/webrtc/
Ddtlsidentitystore.h48 class SSLIdentity; variable
60 virtual void OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity> identity) = 0;
123 rtc::scoped_ptr<rtc::SSLIdentity> identity);
132 rtc::scoped_ptr<rtc::SSLIdentity> identity) in IdentityResult()
136 rtc::scoped_ptr<rtc::SSLIdentity> identity_;
156 rtc::scoped_ptr<rtc::SSLIdentity> free_identity_;
Ddtlsidentitystore.cc71 rtc::scoped_ptr<rtc::SSLIdentity> identity( in GenerateIdentity_w()
72 rtc::SSLIdentity::Generate(kIdentityName, key_type_)); in GenerateIdentity_w()
209 rtc::KeyType key_type, rtc::scoped_ptr<rtc::SSLIdentity> identity) { in OnIdentityGenerated()
Dwebrtcsessiondescriptionfactory.cc94 std::string pem_cert = rtc::SSLIdentity::DerToPem( in OnSuccess()
98 std::string pem_key = rtc::SSLIdentity::DerToPem( in OnSuccess()
102 rtc::scoped_ptr<rtc::SSLIdentity> identity( in OnSuccess()
103 rtc::SSLIdentity::FromPEMStrings(pem_key, pem_cert)); in OnSuccess()
108 rtc::scoped_ptr<rtc::SSLIdentity> identity) { in OnSuccess()
Ddtlsidentitystore_unittest.cc54 void OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity> identity) override { in OnSuccess()
Dwebrtcsessiondescriptionfactory.h57 void OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity> identity) override;
/external/webrtc/webrtc/p2p/base/
Dtransportdescriptionfactory.h18 class SSLIdentity; variable
Dtransportcontroller_unittest.cc272 rtc::RTCCertificate::Create(rtc::scoped_ptr<rtc::SSLIdentity>( in TEST_F()
273 rtc::SSLIdentity::Generate("session1", rtc::KT_DEFAULT))); in TEST_F()
275 rtc::RTCCertificate::Create(rtc::scoped_ptr<rtc::SSLIdentity>( in TEST_F()
276 rtc::SSLIdentity::Generate("session2", rtc::KT_DEFAULT))); in TEST_F()
Dtransportdescriptionfactory_unittest.cc30 scoped_ptr<rtc::SSLIdentity>(new rtc::FakeSSLIdentity("User1")))), in TransportDescriptionFactoryTest()
32 scoped_ptr<rtc::SSLIdentity>(new rtc::FakeSSLIdentity("User2")))) {} in TransportDescriptionFactoryTest()

12