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

Side by Side Diff: net/third_party/nss/ssl/os2_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/os2_err.h ('k') | net/third_party/nss/ssl/preenc.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: os2_err.c,v 1.5 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: os2_err.c,v 1.4 2004/04/27 23:04:39 gerv%gerv.net 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 18
51 19
52 /* 20 /*
53 * Based on win32err.c 21 * Based on win32err.c
54 * OS2TODO Stub everything for now to build. HCT 22 * OS2TODO Stub everything for now to build. HCT
55 */ 23 */
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // case ERROR_FILE_EXISTS: prError = PR_FILE_EXISTS_ERROR; break; 272 // case ERROR_FILE_EXISTS: prError = PR_FILE_EXISTS_ERROR; break;
305 // case ERROR_FILE_INVALID: prError = PR_BAD_DESCRIPTOR_ERROR; break; 273 // case ERROR_FILE_INVALID: prError = PR_BAD_DESCRIPTOR_ERROR; break;
306 #if ERROR_FILE_NOT_FOUND != ENOENT 274 #if ERROR_FILE_NOT_FOUND != ENOENT
307 // 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 ;
308 #endif 276 #endif
309 default: prError = PR_UNKNOWN_ERROR; break; 277 default: prError = PR_UNKNOWN_ERROR; break;
310 } 278 }
311 PR_SetError(prError, err); 279 PR_SetError(prError, err);
312 } 280 }
313 281
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/os2_err.h ('k') | net/third_party/nss/ssl/preenc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698