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

Side by Side Diff: net/third_party/nss/ssl/os2_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: os2_err.c,v 1.5 2012/04/25 14:50:12 gerv%gerv.net Exp $ */ 13 /* $Id$ */
14 14
15 #include "prerror.h" 15 #include "prerror.h"
16 #include "prlog.h" 16 #include "prlog.h"
17 #include <errno.h> 17 #include <errno.h>
18 18
19 19
20 /* 20 /*
21 * Based on win32err.c 21 * Based on win32err.c
22 * OS2TODO Stub everything for now to build. HCT 22 * OS2TODO Stub everything for now to build. HCT
23 */ 23 */
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // case ERROR_FILE_EXISTS: prError = PR_FILE_EXISTS_ERROR; break; 272 // case ERROR_FILE_EXISTS: prError = PR_FILE_EXISTS_ERROR; break;
273 // case ERROR_FILE_INVALID: prError = PR_BAD_DESCRIPTOR_ERROR; break; 273 // case ERROR_FILE_INVALID: prError = PR_BAD_DESCRIPTOR_ERROR; break;
274 #if ERROR_FILE_NOT_FOUND != ENOENT 274 #if ERROR_FILE_NOT_FOUND != ENOENT
275 // case ERROR_FILE_NOT_FOUND: prError = PR_FILE_NOT_FOUND_ERROR; break ; 275 // case ERROR_FILE_NOT_FOUND: prError = PR_FILE_NOT_FOUND_ERROR; break ;
276 #endif 276 #endif
277 default: prError = PR_UNKNOWN_ERROR; break; 277 default: prError = PR_UNKNOWN_ERROR; break;
278 } 278 }
279 PR_SetError(prError, err); 279 PR_SetError(prError, err);
280 } 280 }
281 281
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698