OLD | NEW |
---|---|
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_H_ |
9 #define NET_SOCKET_NSS_SSL_UTIL_H_ | 9 #define NET_SOCKET_NSS_SSL_UTIL_H_ |
10 | 10 |
11 #include <prerror.h> | 11 #include "net/base/net_export.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 class BoundNetLog; | 15 // Initialize NSS SSL library. |
Wez
2012/06/12 17:27:13
Can you clarify what level of initialization this
Ryan Sleevi
2012/06/12 17:45:29
Yup. We've had the style discussion as to whether
| |
16 | |
17 // Initalize NSS SSL library. | |
18 void EnsureNSSSSLInit(); | 16 void EnsureNSSSSLInit(); |
19 | 17 |
20 // Log a failed NSS funcion call. | 18 // Initialize NSS SSL server sockets support. |
wtc
2012/06/12 18:27:38
We should document why this needs to be initialize
| |
21 void LogFailedNSSFunction(const BoundNetLog& net_log, | 19 NET_EXPORT void EnsureNSSSSLServerInit(); |
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 NSS error code to network error code. | |
29 int MapNSSError(PRErrorCode err); | |
30 | 20 |
31 } // namespace net | 21 } // namespace net |
32 | 22 |
33 #endif // NET_SOCKET_NSS_SSL_UTIL_H_ | 23 #endif // NET_SOCKET_NSS_SSL_UTIL_H_ |
OLD | NEW |