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

Side by Side Diff: net/socket/nss_common.h

Issue 5746003: Defines SSLServerSocket and implements SSLServerSocketNSS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 10 years 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is only inclued in ssl_client_socket_nss.cc and
6 // ssl_server_socket_nss.cc to share common functions of NSS.
wtc 2010/12/17 00:16:26 Nit: extra space at beginning of comment line. Pl
Alpha Left Google 2010/12/17 08:30:43 Done.
7
8 #include <certt.h>
9 #include <keyt.h>
10 #include <nspr.h>
11 #include <nss.h>
12
13 namespace net {
14
15 class BoundNetLog;
16
17 // Initalize NSS library.
wtc 2010/12/17 00:16:26 NSS library => the NSS SSL library
Alpha Left Google 2010/12/17 08:30:43 Done.
18 void EnsureNSSSSLInit();
19
20 // Log a failing NSS funcion call.
wtc 2010/12/17 00:16:26 Nit: failing => failed
Alpha Left Google 2010/12/17 08:30:43 Done.
21 void LogFailedNSSFunction(const BoundNetLog& net_log,
22 const char* function,
23 const char* param);
24
25 // Map network error code to NSS error code.
26 PRErrorCode MapErrorToNSS(int result);
27
28 // Map NSPR error to network error code.
29 int MapNSPRError(PRErrorCode err);
wtc 2010/12/17 00:16:26 It looks nicer to name this function MapNSSError,
Alpha Left Google 2010/12/17 08:30:43 Done.
30
31 // Map handshake error to network error code.
32 int MapHandshakeError(PRErrorCode err);
33
34 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698