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

Unified Diff: net/socket/nss_ssl_util.h

Issue 75663004: net: boost AES-GCM ciphers if the machine has AES-NI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: codereview is broken. Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/cpu.cc ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/nss_ssl_util.h
diff --git a/net/socket/nss_ssl_util.h b/net/socket/nss_ssl_util.h
index 09ae3562cd77fa32c3360f3fe9a907586766b4d0..699e3652b88d4dfe1958d0065aab2ebf15da5bff 100644
--- a/net/socket/nss_ssl_util.h
+++ b/net/socket/nss_ssl_util.h
@@ -10,6 +10,7 @@
#include <prerror.h>
+#include "base/basictypes.h"
#include "net/base/net_export.h"
namespace net {
@@ -27,6 +28,15 @@ void LogFailedNSSFunction(const BoundNetLog& net_log,
// Map network error code to NSS error code.
PRErrorCode MapErrorToNSS(int result);
+// GetNSSCipherOrder either returns NULL, to indicate that no special cipher
+// order is required, or it returns a pointer to an array of cipher suite ids.
+// On return, |*out_length| is set to the length of the returned array.
+//
+// The array, if not NULL, indicates the preferred order of cipher suites but
+// inclusion in the array does not mean that the given cipher suite should
+// necessarily be enabled.
+const uint16* GetNSSCipherOrder(size_t* out_length);
+
// Map NSS error code to network error code.
int MapNSSError(PRErrorCode err);
« no previous file with comments | « base/cpu.cc ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698