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

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

Issue 10543106: Add an explicit function to init NSS for SSL server sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 8 years, 6 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is only included in ssl_client_socket_nss.cc and 5 // This file is only included in ssl_client_socket_nss.cc and
6 // ssl_server_socket_nss.cc to share common functions of NSS. 6 // ssl_server_socket_nss.cc to share common functions of NSS.
7 7
8 #ifndef NET_SOCKET_NSS_SSL_UTIL_H_ 8 #ifndef NET_SOCKET_NSS_SSL_UTIL_INTERNAL_H_
9 #define NET_SOCKET_NSS_SSL_UTIL_H_ 9 #define NET_SOCKET_NSS_SSL_UTIL_INTERNAL_H_
10 10
11 #include <prerror.h> 11 #include <prerror.h>
12 12
13 // These functions return a type defined in an NSS header, and so cannot be
14 // declared in nss_util.h. Hence, they are declared here.
wtc 2012/06/12 18:27:38 nss_util.h => nss_ssl_util.h
15
13 namespace net { 16 namespace net {
14 17
15 class BoundNetLog; 18 class BoundNetLog;
16 19
17 // Initalize NSS SSL library.
18 void EnsureNSSSSLInit();
19
20 // Log a failed NSS funcion call. 20 // Log a failed NSS funcion call.
21 void LogFailedNSSFunction(const BoundNetLog& net_log, 21 void LogFailedNSSFunction(const BoundNetLog& net_log,
22 const char* function, 22 const char* function,
23 const char* param); 23 const char* param);
24 24
25 // Map network error code to NSS error code. 25 // Map network error code to NSS error code.
26 PRErrorCode MapErrorToNSS(int result); 26 PRErrorCode MapErrorToNSS(int result);
27 27
28 // Map NSS error code to network error code. 28 // Map NSS error code to network error code.
29 int MapNSSError(PRErrorCode err); 29 int MapNSSError(PRErrorCode err);
30 30
31 } // namespace net 31 } // namespace net
32 32
33 #endif // NET_SOCKET_NSS_SSL_UTIL_H_ 33 #endif // NET_SOCKET_NSS_SSL_UTIL_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698