Searched refs:tls_cert (Results 1 – 3 of 3) sorted by relevance
/external/openscreen/cast/receiver/channel/testing/ |
D | device_auth_test_helpers.cc | 41 const std::vector<std::string> tls_cert = in InitStaticCredentialsFromFiles() local 43 ASSERT_EQ(tls_cert.size(), 1u); in InitStaticCredentialsFromFiles() 44 data = reinterpret_cast<const uint8_t*>(tls_cert[0].data()); in InitStaticCredentialsFromFiles() 47 bssl::UniquePtr<X509>(d2i_X509(nullptr, &data, tls_cert[0].size())); in InitStaticCredentialsFromFiles() 50 const auto* begin = reinterpret_cast<const uint8_t*>(tls_cert[0].data()); in InitStaticCredentialsFromFiles() 51 creds->tls_cert_der.assign(begin, begin + tls_cert[0].size()); in InitStaticCredentialsFromFiles()
|
/external/openscreen/cast/sender/channel/ |
D | cast_auth_util_unittest.cc | 300 X509* tls_cert = d2i_X509(nullptr, &data, der_cert.size()); in TEST_F() local 303 ASSERT_TRUE(GetCertValidTimeRange(tls_cert, ¬_before, ¬_after)); in TEST_F() 308 const Error result = VerifyTLSCertificateValidity(tls_cert, s); in TEST_F() 310 X509_free(tls_cert); in TEST_F() 318 X509* tls_cert = d2i_X509(nullptr, &data, der_cert.size()); in TEST_F() local 321 ASSERT_TRUE(GetCertValidTimeRange(tls_cert, ¬_before, ¬_after)); in TEST_F() 327 VerifyTLSCertificateValidity(tls_cert, s); in TEST_F() 331 X509_free(tls_cert); in TEST_F() 339 X509* tls_cert = d2i_X509(nullptr, &data, der_cert.size()); in TEST_F() local 342 ASSERT_TRUE(GetCertValidTimeRange(tls_cert, ¬_before, ¬_after)); in TEST_F() [all …]
|
/external/openscreen/cast/receiver/channel/ |
D | static_credentials.cc | 86 bssl::UniquePtr<X509> tls_cert = std::move(tls_cert_or_error.value()); in GenerateCredentials() local 107 cert_length = i2d_X509(tls_cert.get(), nullptr); in GenerateCredentials() 111 i2d_X509(tls_cert.get(), &out); in GenerateCredentials()
|