Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: nss/lib/libpkix/pkix/util/pkix_error.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698