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

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

Issue 11275240: Update net/third_party/nss/ssl to NSS 3.14. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Upload before commit Created 8 years, 1 month 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
« no previous file with comments | « net/third_party/nss/ssl/unix_err.h ('k') | net/third_party/nss/ssl/win32err.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * ***** BEGIN LICENSE BLOCK ***** 10 * This Source Code Form is subject to the terms of the Mozilla Public
11 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 11 * License, v. 2.0. If a copy of the MPL was not distributed with this
12 * 12 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
13 * The contents of this file are subject to the Mozilla Public License Version 13 /* $Id: unix_err.c,v 1.9 2012/04/25 14:50:12 gerv%gerv.net Exp $ */
14 * 1.1 (the "License"); you may not use this file except in compliance with
15 * the License. You may obtain a copy of the License at
16 * http://www.mozilla.org/MPL/
17 *
18 * Software distributed under the License is distributed on an "AS IS" basis,
19 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
20 * for the specific language governing rights and limitations under the
21 * License.
22 *
23 * The Original Code is the Netscape security libraries.
24 *
25 * The Initial Developer of the Original Code is
26 * Netscape Communications Corporation.
27 * Portions created by the Initial Developer are Copyright (C) 1994-2000
28 * the Initial Developer. All Rights Reserved.
29 *
30 * Contributor(s):
31 *
32 * Alternatively, the contents of this file may be used under the terms of
33 * either the GNU General Public License Version 2 or later (the "GPL"), or
34 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
35 * in which case the provisions of the GPL or the LGPL are applicable instead
36 * of those above. If you wish to allow use of your version of this file only
37 * under the terms of either the GPL or the LGPL, and not to allow others to
38 * use your version of this file under the terms of the MPL, indicate your
39 * decision by deleting the provisions above and replace them with the notice
40 * and other provisions required by the GPL or the LGPL. If you do not delete
41 * the provisions above, a recipient may use your version of this file under
42 * the terms of any one of the MPL, the GPL or the LGPL.
43 *
44 * ***** END LICENSE BLOCK ***** */
45 /* $Id: unix_err.c,v 1.8 2004/04/27 23:04:39 gerv%gerv.net Exp $ */
46 14
47 #if 0 15 #if 0
48 #include "primpl.h" 16 #include "primpl.h"
49 #else 17 #else
50 #define _PR_POLL_AVAILABLE 1 18 #define _PR_POLL_AVAILABLE 1
51 #include "prerror.h" 19 #include "prerror.h"
52 #endif 20 #endif
53 21
54 #if defined (__bsdi__) || defined(NTO) || defined(DARWIN) || defined(BEOS) 22 #if defined (__bsdi__) || defined(NTO) || defined(DARWIN) || defined(BEOS)
55 #undef _PR_POLL_AVAILABLE 23 #undef _PR_POLL_AVAILABLE
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 case ETIMEDOUT: prError = PR_IO_TIMEOUT_ERROR; break; 509 case ETIMEDOUT: prError = PR_IO_TIMEOUT_ERROR; break;
542 #if EWOULDBLOCK != EAGAIN 510 #if EWOULDBLOCK != EAGAIN
543 case EWOULDBLOCK: prError = PR_WOULD_BLOCK_ERROR; break; 511 case EWOULDBLOCK: prError = PR_WOULD_BLOCK_ERROR; break;
544 #endif 512 #endif
545 case EXDEV: prError = PR_NOT_SAME_DEVICE_ERROR; break; 513 case EXDEV: prError = PR_NOT_SAME_DEVICE_ERROR; break;
546 514
547 default: prError = PR_UNKNOWN_ERROR; break; 515 default: prError = PR_UNKNOWN_ERROR; break;
548 } 516 }
549 PR_SetError(prError, err); 517 PR_SetError(prError, err);
550 } 518 }
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/unix_err.h ('k') | net/third_party/nss/ssl/win32err.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698