| OLD | NEW |
| 1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 /* | 4 /* |
| 5 * pkix_build.c | 5 * pkix_build.c |
| 6 * | 6 * |
| 7 * Top level buildChain function | 7 * Top level buildChain function |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 } | 1519 } |
| 1520 | 1520 |
| 1521 /* Match trust anchor to select params in order to find next cert. */ | 1521 /* Match trust anchor to select params in order to find next cert. */ |
| 1522 static PKIX_Error* | 1522 static PKIX_Error* |
| 1523 pkix_Build_SelectCertsFromTrustAnchors( | 1523 pkix_Build_SelectCertsFromTrustAnchors( |
| 1524 PKIX_List *trustAnchorsList, | 1524 PKIX_List *trustAnchorsList, |
| 1525 PKIX_ComCertSelParams *certSelParams, | 1525 PKIX_ComCertSelParams *certSelParams, |
| 1526 PKIX_List **pMatchList, | 1526 PKIX_List **pMatchList, |
| 1527 void *plContext) | 1527 void *plContext) |
| 1528 { | 1528 { |
| 1529 int anchorIndex = 0; | 1529 unsigned int anchorIndex = 0; |
| 1530 PKIX_TrustAnchor *anchor = NULL; | 1530 PKIX_TrustAnchor *anchor = NULL; |
| 1531 PKIX_PL_Cert *trustedCert = NULL; | 1531 PKIX_PL_Cert *trustedCert = NULL; |
| 1532 PKIX_List *matchList = NULL; | 1532 PKIX_List *matchList = NULL; |
| 1533 PKIX_CertSelector *certSel = NULL; | 1533 PKIX_CertSelector *certSel = NULL; |
| 1534 PKIX_CertSelector_MatchCallback selectorMatchCB = NULL; | 1534 PKIX_CertSelector_MatchCallback selectorMatchCB = NULL; |
| 1535 | 1535 |
| 1536 PKIX_ENTER(BUILD, "pkix_Build_SelectCertsFromTrustAnchors"); | 1536 PKIX_ENTER(BUILD, "pkix_Build_SelectCertsFromTrustAnchors"); |
| 1537 | 1537 |
| 1538 PKIX_CHECK(PKIX_CertSelector_Create | 1538 PKIX_CHECK(PKIX_CertSelector_Create |
| 1539 (NULL, NULL, &certSel, plContext), | 1539 (NULL, NULL, &certSel, plContext), |
| (...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3742 *pBuildResult = buildResult; | 3742 *pBuildResult = buildResult; |
| 3743 buildResult = NULL; | 3743 buildResult = NULL; |
| 3744 } | 3744 } |
| 3745 | 3745 |
| 3746 cleanup: | 3746 cleanup: |
| 3747 PKIX_DECREF(buildResult); | 3747 PKIX_DECREF(buildResult); |
| 3748 PKIX_DECREF(state); | 3748 PKIX_DECREF(state); |
| 3749 | 3749 |
| 3750 PKIX_RETURN(BUILD); | 3750 PKIX_RETURN(BUILD); |
| 3751 } | 3751 } |
| OLD | NEW |