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_error.c | 5 * pkix_error.c |
6 * | 6 * |
7 * Error Object Functions | 7 * Error Object Functions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 pkix_Error_Hashcode( | 318 pkix_Error_Hashcode( |
319 PKIX_PL_Object *object, | 319 PKIX_PL_Object *object, |
320 PKIX_UInt32 *pResult, | 320 PKIX_UInt32 *pResult, |
321 void *plContext) | 321 void *plContext) |
322 { | 322 { |
323 PKIX_ENTER(ERROR, "pkix_Error_Hashcode"); | 323 PKIX_ENTER(ERROR, "pkix_Error_Hashcode"); |
324 PKIX_NULLCHECK_TWO(object, pResult); | 324 PKIX_NULLCHECK_TWO(object, pResult); |
325 | 325 |
326 /* XXX Unimplemented */ | 326 /* XXX Unimplemented */ |
327 /* XXX Need to make hashcodes equal when two errors are equal */ | 327 /* XXX Need to make hashcodes equal when two errors are equal */ |
328 *pResult = (PKIX_UInt32)object; | 328 *pResult = (PKIX_UInt32)((char *)object - (char *)NULL); |
329 | 329 |
330 PKIX_RETURN(ERROR); | 330 PKIX_RETURN(ERROR); |
331 } | 331 } |
332 | 332 |
333 /* --Initializers------------------------------------------------- */ | 333 /* --Initializers------------------------------------------------- */ |
334 | 334 |
335 /* | 335 /* |
336 * PKIX_ERRORCLASSNAMES is an array of strings, with each string holding a | 336 * PKIX_ERRORCLASSNAMES is an array of strings, with each string holding a |
337 * descriptive name for an error errClass. This is used by the default | 337 * descriptive name for an error errClass. This is used by the default |
338 * PKIX_PL_Error_ToString function. | 338 * PKIX_PL_Error_ToString function. |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 errorStr, | 556 errorStr, |
557 #endif | 557 #endif |
558 0, | 558 0, |
559 &descString, | 559 &descString, |
560 plContext); | 560 plContext); |
561 | 561 |
562 *pDesc = descString; | 562 *pDesc = descString; |
563 | 563 |
564 PKIX_RETURN(ERROR); | 564 PKIX_RETURN(ERROR); |
565 } | 565 } |
OLD | NEW |