• Home
  • Raw
  • Download

Lines Matching refs:cert

183         Certificate cert;  in addAccessControlProfiles()  local
184 cert.encodedCertificate = testProfile.readerCertificate; in addAccessControlProfiles()
187 testProfile.id, cert, testProfile.userAuthenticationRequired, in addAccessControlProfiles()
339 X509_Ptr cert = X509_Ptr(d2i_X509(nullptr, &certData, certBytes.size())); in validateAttestationCertificate() local
358 EXPECT_EQ(2, X509_get_version(cert.get())); in validateAttestationCertificate()
361 EXPECT_EQ(1, ASN1_INTEGER_get(X509_get_serialNumber(cert.get()))); in validateAttestationCertificate()
364 EXPECT_EQ(NID_ecdsa_with_SHA256, X509_get_signature_nid(cert.get())); in validateAttestationCertificate()
368 X509_NAME* subject = X509_get_subject_name(cert.get()); in validateAttestationCertificate()
373 X509_NAME* issuer = X509_get_issuer_name(cert.get()); in validateAttestationCertificate()
385 ASSERT_TRUE(parseAsn1Time(X509_get0_notBefore(cert.get()), &notBefore)); in validateAttestationCertificate()
393 ASSERT_TRUE(parseAsn1Time(X509_get0_notAfter(cert.get()), &notAfter)); in validateAttestationCertificate()
486 auto cert = X509_Ptr(d2i_X509(nullptr, &data, authKeyCertChain.size())); in verifyAuthKeyCertificate() local
489 EXPECT_EQ(X509_get_version(cert.get()), 2); in verifyAuthKeyCertificate()
492 EXPECT_EQ(ASN1_INTEGER_get(X509_get_serialNumber(cert.get())), 1); in verifyAuthKeyCertificate()
495 EXPECT_EQ(X509_get_signature_nid(cert.get()), NID_ecdsa_with_SHA256); in verifyAuthKeyCertificate()
499 X509_NAME* subject = X509_get_subject_name(cert.get()); in verifyAuthKeyCertificate()
506 X509_NAME* issuer = X509_get_issuer_name(cert.get()); in verifyAuthKeyCertificate()
514 ASSERT_TRUE(parseAsn1Time(X509_get0_notAfter(cert.get()), &notAfter)); in verifyAuthKeyCertificate()
515 ASSERT_TRUE(parseAsn1Time(X509_get0_notBefore(cert.get()), &notBefore)); in verifyAuthKeyCertificate()