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

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

Issue 5746003: Defines SSLServerSocket and implements SSLServerSocketNSS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments 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.
7
8 #ifndef NET_SOCKET_NSS_SSL_UTIL_H_
9 #define NEt_SOCKET_NSS_SSL_UTIL_H_
10
11 #include <certt.h>
12 #include <keyt.h>
13 #include <nspr.h>
14 #include <nss.h>
wtc 2010/12/17 18:08:04 I believe this file only needs to include <nspr.h>
Alpha Left Google 2010/12/17 20:31:12 Done.
15
16 namespace net {
17
18 class BoundNetLog;
19
20 // Initalize NSS SSL library.
21 void EnsureNSSSSLInit();
22
23 // Log a failed NSS funcion call.
24 void LogFailedNSSFunction(const BoundNetLog& net_log,
25 const char* function,
26 const char* param);
27
28 // Map network error code to NSS error code.
29 PRErrorCode MapErrorToNSS(int result);
30
31 // Map NSS error code to network error code.
32 int MapNSSError(PRErrorCode err);
33
34 // Map handshake error to network error code.
35 int MapHandshakeError(PRErrorCode err);
wtc 2010/12/17 18:08:04 Nit: since this function is in the top-level net n
Alpha Left Google 2010/12/17 20:09:57 Done.
36
37 } // namespace net
38
39 #endif // NET_SOCKET_NSS_SSL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698