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

Side by Side Diff: net/third_party/nss/ssl/unix_err.c

Issue 14522022: Update NSS libSSL to NSS_3_15_BETA2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Make the changes rsleevi suggested Created 7 years, 7 months 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 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* 2 /*
3 * This file essentially replicates NSPR's source for the functions that 3 * This file essentially replicates NSPR's source for the functions that
4 * map system-specific error codes to NSPR error codes. We would use 4 * map system-specific error codes to NSPR error codes. We would use
5 * NSPR's functions, instead of duplicating them, but they're private. 5 * NSPR's functions, instead of duplicating them, but they're private.
6 * As long as SSL's server session cache code must do platform native I/O 6 * As long as SSL's server session cache code must do platform native I/O
7 * to accomplish its job, and NSPR's error mapping functions remain private, 7 * to accomplish its job, and NSPR's error mapping functions remain private,
8 * this code will continue to need to be replicated. 8 * this code will continue to need to be replicated.
9 * 9 *
10 * This Source Code Form is subject to the terms of the Mozilla Public 10 * This Source Code Form is subject to the terms of the Mozilla Public
11 * License, v. 2.0. If a copy of the MPL was not distributed with this 11 * License, v. 2.0. If a copy of the MPL was not distributed with this
12 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 12 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
13 /* $Id: unix_err.c,v 1.9 2012/04/25 14:50:12 gerv%gerv.net Exp $ */ 13 /* $Id$ */
14 14
15 #if 0 15 #if 0
16 #include "primpl.h" 16 #include "primpl.h"
17 #else 17 #else
18 #define _PR_POLL_AVAILABLE 1 18 #define _PR_POLL_AVAILABLE 1
19 #include "prerror.h" 19 #include "prerror.h"
20 #endif 20 #endif
21 21
22 #if defined (__bsdi__) || defined(NTO) || defined(DARWIN) || defined(BEOS) 22 #if defined (__bsdi__) || defined(NTO) || defined(DARWIN) || defined(BEOS)
23 #undef _PR_POLL_AVAILABLE 23 #undef _PR_POLL_AVAILABLE
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 case ETIMEDOUT: prError = PR_IO_TIMEOUT_ERROR; break; 509 case ETIMEDOUT: prError = PR_IO_TIMEOUT_ERROR; break;
510 #if EWOULDBLOCK != EAGAIN 510 #if EWOULDBLOCK != EAGAIN
511 case EWOULDBLOCK: prError = PR_WOULD_BLOCK_ERROR; break; 511 case EWOULDBLOCK: prError = PR_WOULD_BLOCK_ERROR; break;
512 #endif 512 #endif
513 case EXDEV: prError = PR_NOT_SAME_DEVICE_ERROR; break; 513 case EXDEV: prError = PR_NOT_SAME_DEVICE_ERROR; break;
514 514
515 default: prError = PR_UNKNOWN_ERROR; break; 515 default: prError = PR_UNKNOWN_ERROR; break;
516 } 516 }
517 PR_SetError(prError, err); 517 PR_SetError(prError, err);
518 } 518 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698