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

Side by Side Diff: net/third_party/nss/ssl/win32err.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/win32err.h ('k') | no next file » | 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: win32err.c,v 1.6 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: win32err.c,v 1.5 2008/11/20 04:39:59 nelson%bolyard.com Exp $ */
46 14
47 #include "prerror.h" 15 #include "prerror.h"
48 #include "prlog.h" 16 #include "prlog.h"
49 #include <errno.h> 17 #include <errno.h>
50 #include <windows.h> 18 #include <windows.h>
51 19
52 /* 20 /*
53 * On Win32, we map three kinds of error codes: 21 * On Win32, we map three kinds of error codes:
54 * - GetLastError(): for Win32 functions 22 * - GetLastError(): for Win32 functions
55 * - WSAGetLastError(): for Winsock functions 23 * - WSAGetLastError(): for Winsock functions
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 case WSAEPROTOTYPE: prError = PR_INVALID_ARGUMENT_ERROR; break; 335 case WSAEPROTOTYPE: prError = PR_INVALID_ARGUMENT_ERROR; break;
368 case WSAESHUTDOWN: prError = PR_SOCKET_SHUTDOWN_ERROR; break; 336 case WSAESHUTDOWN: prError = PR_SOCKET_SHUTDOWN_ERROR; break;
369 case WSAESOCKTNOSUPPORT: prError = PR_INVALID_ARGUMENT_ERROR; break; 337 case WSAESOCKTNOSUPPORT: prError = PR_INVALID_ARGUMENT_ERROR; break;
370 case WSAETIMEDOUT: prError = PR_CONNECT_ABORTED_ERROR; break; 338 case WSAETIMEDOUT: prError = PR_CONNECT_ABORTED_ERROR; break;
371 case WSAEWOULDBLOCK: prError = PR_WOULD_BLOCK_ERROR; break; 339 case WSAEWOULDBLOCK: prError = PR_WOULD_BLOCK_ERROR; break;
372 default: prError = PR_UNKNOWN_ERROR; break; 340 default: prError = PR_UNKNOWN_ERROR; break;
373 } 341 }
374 PR_SetError(prError, err); 342 PR_SetError(prError, err);
375 } 343 }
376 344
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/win32err.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698