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); |