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

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

Issue 91913002: net: boost AES-GCM ciphers if the machine has AES-NI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add new symbol to .def Created 7 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
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 <prerror.h>
12 12
13 #include "base/basictypes.h"
13 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
14 15
15 namespace net { 16 namespace net {
16 17
17 class BoundNetLog; 18 class BoundNetLog;
18 19
19 // Initalize NSS SSL library. 20 // Initalize NSS SSL library.
20 NET_EXPORT void EnsureNSSSSLInit(); 21 NET_EXPORT void EnsureNSSSSLInit();
21 22
22 // Log a failed NSS funcion call. 23 // Log a failed NSS funcion call.
23 void LogFailedNSSFunction(const BoundNetLog& net_log, 24 void LogFailedNSSFunction(const BoundNetLog& net_log,
24 const char* function, 25 const char* function,
25 const char* param); 26 const char* param);
26 27
27 // Map network error code to NSS error code. 28 // Map network error code to NSS error code.
28 PRErrorCode MapErrorToNSS(int result); 29 PRErrorCode MapErrorToNSS(int result);
29 30
31 // GetNSSCipherOrder either returns NULL, to indicate that no special cipher
32 // order is required, or it returns a pointer to an array of cipher suite ids.
33 // On return, |*out_length| is set to the length of the returned array.
34 //
35 // The array, if not NULL, indicates the preferred order of cipher suites but
36 // inclusion in the array does not mean that the given cipher suite should
37 // necessarily be enabled.
38 const uint16* GetNSSCipherOrder(size_t* out_length);
39
30 // Map NSS error code to network error code. 40 // Map NSS error code to network error code.
31 int MapNSSError(PRErrorCode err); 41 int MapNSSError(PRErrorCode err);
32 42
33 } // namespace net 43 } // namespace net
34 44
35 #endif // NET_SOCKET_NSS_SSL_UTIL_H_ 45 #endif // NET_SOCKET_NSS_SSL_UTIL_H_
OLDNEW
« no previous file with comments | « base/cpu.cc ('k') | net/socket/nss_ssl_util.cc » ('j') | net/socket/nss_ssl_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698