security/nss/lib/ssl/win32err.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /*
michael@0 2 * This file essentially replicates NSPR's source for the functions that
michael@0 3 * map system-specific error codes to NSPR error codes. We would use
michael@0 4 * NSPR's functions, instead of duplicating them, but they're private.
michael@0 5 * As long as SSL's server session cache code must do platform native I/O
michael@0 6 * to accomplish its job, and NSPR's error mapping functions remain private,
michael@0 7 * This code will continue to need to be replicated.
michael@0 8 *
michael@0 9 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 10 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 11 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 12
michael@0 13 /* NSPR doesn't make these functions public, so we have to duplicate
michael@0 14 ** them in NSS.
michael@0 15 */
michael@0 16 extern void nss_MD_win32_map_accept_error(PRInt32 err);
michael@0 17 extern void nss_MD_win32_map_acceptex_error(PRInt32 err);
michael@0 18 extern void nss_MD_win32_map_access_error(PRInt32 err);
michael@0 19 extern void nss_MD_win32_map_bind_error(PRInt32 err);
michael@0 20 extern void nss_MD_win32_map_close_error(PRInt32 err);
michael@0 21 extern void nss_MD_win32_map_closedir_error(PRInt32 err);
michael@0 22 extern void nss_MD_win32_map_connect_error(PRInt32 err);
michael@0 23 extern void nss_MD_win32_map_default_error(PRInt32 err);
michael@0 24 extern void nss_MD_win32_map_delete_error(PRInt32 err);
michael@0 25 extern void nss_MD_win32_map_fstat_error(PRInt32 err);
michael@0 26 extern void nss_MD_win32_map_fsync_error(PRInt32 err);
michael@0 27 extern void nss_MD_win32_map_gethostname_error(PRInt32 err);
michael@0 28 extern void nss_MD_win32_map_getpeername_error(PRInt32 err);
michael@0 29 extern void nss_MD_win32_map_getsockname_error(PRInt32 err);
michael@0 30 extern void nss_MD_win32_map_getsockopt_error(PRInt32 err);
michael@0 31 extern void nss_MD_win32_map_listen_error(PRInt32 err);
michael@0 32 extern void nss_MD_win32_map_lockf_error(PRInt32 err);
michael@0 33 extern void nss_MD_win32_map_lseek_error(PRInt32 err);
michael@0 34 extern void nss_MD_win32_map_mkdir_error(PRInt32 err);
michael@0 35 extern void nss_MD_win32_map_open_error(PRInt32 err);
michael@0 36 extern void nss_MD_win32_map_opendir_error(PRInt32 err);
michael@0 37 extern void nss_MD_win32_map_read_error(PRInt32 err);
michael@0 38 extern void nss_MD_win32_map_readdir_error(PRInt32 err);
michael@0 39 extern void nss_MD_win32_map_recv_error(PRInt32 err);
michael@0 40 extern void nss_MD_win32_map_recvfrom_error(PRInt32 err);
michael@0 41 extern void nss_MD_win32_map_rename_error(PRInt32 err);
michael@0 42 extern void nss_MD_win32_map_rmdir_error(PRInt32 err);
michael@0 43 extern void nss_MD_win32_map_select_error(PRInt32 err);
michael@0 44 extern void nss_MD_win32_map_send_error(PRInt32 err);
michael@0 45 extern void nss_MD_win32_map_sendto_error(PRInt32 err);
michael@0 46 extern void nss_MD_win32_map_setsockopt_error(PRInt32 err);
michael@0 47 extern void nss_MD_win32_map_shutdown_error(PRInt32 err);
michael@0 48 extern void nss_MD_win32_map_socket_error(PRInt32 err);
michael@0 49 extern void nss_MD_win32_map_stat_error(PRInt32 err);
michael@0 50 extern void nss_MD_win32_map_transmitfile_error(PRInt32 err);
michael@0 51 extern void nss_MD_win32_map_write_error(PRInt32 err);

mercurial