| 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_logger.c | 5 * pkix_logger.c |
| 6 * | 6 * |
| 7 * Logger Object Functions | 7 * Logger Object Functions |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 PKIX_NULLCHECK_TWO(object, pHashcode); | 485 PKIX_NULLCHECK_TWO(object, pHashcode); |
| 486 | 486 |
| 487 PKIX_CHECK(pkix_CheckType(object, PKIX_LOGGER_TYPE, plContext), | 487 PKIX_CHECK(pkix_CheckType(object, PKIX_LOGGER_TYPE, plContext), |
| 488 PKIX_OBJECTNOTLOGGER); | 488 PKIX_OBJECTNOTLOGGER); |
| 489 | 489 |
| 490 logger = (PKIX_Logger *)object; | 490 logger = (PKIX_Logger *)object; |
| 491 | 491 |
| 492 PKIX_HASHCODE(logger->context, &tempHash, plContext, | 492 PKIX_HASHCODE(logger->context, &tempHash, plContext, |
| 493 PKIX_OBJECTHASHCODEFAILED); | 493 PKIX_OBJECTHASHCODEFAILED); |
| 494 | 494 |
| 495 hash = (((((PKIX_UInt32) logger->callback + tempHash) << 7) + | 495 hash = (((((PKIX_UInt32)((char *)logger->callback - (char *)NULL) + temp
Hash) << 7) + |
| 496 logger->maxLevel) << 7) + (PKIX_UInt32)logger->logComponent; | 496 logger->maxLevel) << 7) + (PKIX_UInt32)logger->logComponent; |
| 497 | 497 |
| 498 *pHashcode = hash; | 498 *pHashcode = hash; |
| 499 | 499 |
| 500 cleanup: | 500 cleanup: |
| 501 | 501 |
| 502 PKIX_RETURN(LOGGER); | 502 PKIX_RETURN(LOGGER); |
| 503 } | 503 } |
| 504 | 504 |
| 505 | 505 |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 pkixLoggersErrors = savedPkixLoggersErrors; | 1079 pkixLoggersErrors = savedPkixLoggersErrors; |
| 1080 pkixLoggersDebugTrace = savedPkixLoggersDebugTrace; | 1080 pkixLoggersDebugTrace = savedPkixLoggersDebugTrace; |
| 1081 | 1081 |
| 1082 if (locked) { | 1082 if (locked) { |
| 1083 PKIX_CHECK(PKIX_PL_MonitorLock_Exit(pkixLoggerLock, plContext), | 1083 PKIX_CHECK(PKIX_PL_MonitorLock_Exit(pkixLoggerLock, plContext), |
| 1084 PKIX_MONITORLOCKEXITFAILED); | 1084 PKIX_MONITORLOCKEXITFAILED); |
| 1085 } | 1085 } |
| 1086 | 1086 |
| 1087 PKIX_RETURN(LOGGER); | 1087 PKIX_RETURN(LOGGER); |
| 1088 } | 1088 } |
| OLD | NEW |