当前位置: 首页>>代码示例>>C++>>正文


C++ IssuerChecker::Check方法代码示例

本文整理汇总了C++中IssuerChecker::Check方法的典型用法代码示例。如果您正苦于以下问题:C++ IssuerChecker::Check方法的具体用法?C++ IssuerChecker::Check怎么用?C++ IssuerChecker::Check使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IssuerChecker的用法示例。


在下文中一共展示了IssuerChecker::Check方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CheckCert

 Result CheckCert(ByteString& certDER, IssuerChecker& checker, bool& keepGoing)
 {
   Input derCert;
   Result rv = derCert.Init(certDER.data(), certDER.length());
   if (rv != Success) {
     return rv;
   }
   return checker.Check(derCert, nullptr/*additionalNameConstraints*/,
                        keepGoing);
 }
开发者ID:emaldona,项目名称:nss,代码行数:10,代码来源:pkixbuild_tests.cpp

示例2: FindIssuer

 Result FindIssuer(Input, IssuerChecker& checker, Time) override
 {
   Input issuerInput;
   EXPECT_EQ(Success, issuerInput.Init(issuer.data(), issuer.length()));
   bool keepGoing;
   EXPECT_EQ(Success,
             checker.Check(issuerInput, nullptr /*additionalNameConstraints*/,
                           keepGoing));
   EXPECT_EQ(expectedKeepGoing, keepGoing);
   return Success;
 }
开发者ID:LordJZ,项目名称:gecko-dev,代码行数:11,代码来源:pkixbuild_tests.cpp

示例3: FindIssuer

  Result FindIssuer(Input, IssuerChecker& checker, Time) override
  {
    EXPECT_FALSE(ENCODING_FAILED(issuer));

    Input issuerInput;
    EXPECT_EQ(Success, issuerInput.Init(issuer.data(), issuer.length()));

    bool keepGoing;
    EXPECT_EQ(Success, checker.Check(issuerInput, nullptr, keepGoing));
    EXPECT_FALSE(keepGoing);

    return Success;
  }
开发者ID:MekliCZ,项目名称:positron,代码行数:13,代码来源:pkixcheck_CheckSignatureAlgorithm_tests.cpp

示例4: FindIssuer

 Result FindIssuer(Input, IssuerChecker& checker, Time) override
 {
   bool keepGoing;
   for (auto& cert: certs) {
     Input certInput;
     Result rv = certInput.Init(cert.data(), cert.length());
     if (rv != Success) {
       return rv;
     }
     rv = checker.Check(certInput, nullptr, keepGoing);
     if (rv != Success || !keepGoing) {
       return rv;
     }
   }
   return Success;
 }
开发者ID:emaldona,项目名称:nss,代码行数:16,代码来源:pkixbuild_tests.cpp

示例5: FindIssuer

 virtual Result FindIssuer(Input encodedIssuerName, IssuerChecker& checker,
                           Time)
 {
   ByteString* issuerDER = nullptr;
   if (InputEqualsByteString(encodedIssuerName, rootSubjectDER)) {
     issuerDER = &rootDER;
   } else if (InputEqualsByteString(encodedIssuerName, intSubjectDER)) {
     issuerDER = &intDER;
   } else {
     // FindIssuer just returns success if it can't find a potential issuer.
     return Success;
   }
   Input issuerCert;
   Result rv = issuerCert.Init(issuerDER->data(), issuerDER->length());
   if (rv != Success) {
     return rv;
   }
   bool keepGoing;
   return checker.Check(issuerCert, nullptr, keepGoing);
 }
开发者ID:alex-tifrea,项目名称:gecko-dev,代码行数:20,代码来源:pkixcert_signature_algorithm_tests.cpp


注:本文中的IssuerChecker::Check方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。