Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |