| 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_policynode.c | 5 * pkix_policynode.c |
| 6 * | 6 * |
| 7 * Policy Node Object Type Definition | 7 * Policy Node Object Type Definition |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 PKIX_CHECK(pkix_CheckType | 817 PKIX_CHECK(pkix_CheckType |
| 818 (object, PKIX_CERTPOLICYNODE_TYPE, plContext), | 818 (object, PKIX_CERTPOLICYNODE_TYPE, plContext), |
| 819 PKIX_OBJECTNOTPOLICYNODE); | 819 PKIX_OBJECTNOTPOLICYNODE); |
| 820 | 820 |
| 821 node = (PKIX_PolicyNode *)object; | 821 node = (PKIX_PolicyNode *)object; |
| 822 | 822 |
| 823 PKIX_CHECK(pkix_SinglePolicyNode_Hashcode | 823 PKIX_CHECK(pkix_SinglePolicyNode_Hashcode |
| 824 (node, &nodeHash, plContext), | 824 (node, &nodeHash, plContext), |
| 825 PKIX_SINGLEPOLICYNODEHASHCODEFAILED); | 825 PKIX_SINGLEPOLICYNODEHASHCODEFAILED); |
| 826 | 826 |
| 827 nodeHash = 31*nodeHash + (PKIX_UInt32)(node->parent); | 827 nodeHash = 31*nodeHash + (PKIX_UInt32)((char *)node->parent - (char *)NU
LL); |
| 828 | 828 |
| 829 PKIX_HASHCODE | 829 PKIX_HASHCODE |
| 830 (node->children, | 830 (node->children, |
| 831 &childrenHash, | 831 &childrenHash, |
| 832 plContext, | 832 plContext, |
| 833 PKIX_OBJECTHASHCODEFAILED); | 833 PKIX_OBJECTHASHCODEFAILED); |
| 834 | 834 |
| 835 nodeHash = 31*nodeHash + childrenHash; | 835 nodeHash = 31*nodeHash + childrenHash; |
| 836 | 836 |
| 837 *pHashcode = nodeHash; | 837 *pHashcode = nodeHash; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 { | 1368 { |
| 1369 | 1369 |
| 1370 PKIX_ENTER(CERTPOLICYNODE, "PKIX_PolicyNode_GetDepth"); | 1370 PKIX_ENTER(CERTPOLICYNODE, "PKIX_PolicyNode_GetDepth"); |
| 1371 | 1371 |
| 1372 PKIX_NULLCHECK_TWO(node, pDepth); | 1372 PKIX_NULLCHECK_TWO(node, pDepth); |
| 1373 | 1373 |
| 1374 *pDepth = node->depth; | 1374 *pDepth = node->depth; |
| 1375 | 1375 |
| 1376 PKIX_RETURN(CERTPOLICYNODE); | 1376 PKIX_RETURN(CERTPOLICYNODE); |
| 1377 } | 1377 } |
| OLD | NEW |