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

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

Issue 757033004: Do not use HTTP/2 without adequate security. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ssl_cipher_suite_names.* from net_non_nacl_sources. Created 6 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
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
(...skipping 15 matching lines...) Expand all
26 const char* function, 26 const char* function,
27 const char* param); 27 const char* param);
28 28
29 // Map network error code to NSS error code. 29 // Map network error code to NSS error code.
30 PRErrorCode MapErrorToNSS(int result); 30 PRErrorCode MapErrorToNSS(int result);
31 31
32 // GetNSSModelSocket returns either NULL, or an NSS socket that can be passed 32 // GetNSSModelSocket returns either NULL, or an NSS socket that can be passed
33 // to |SSL_ImportFD| in order to inherit some default options. 33 // to |SSL_ImportFD| in order to inherit some default options.
34 PRFileDesc* GetNSSModelSocket(); 34 PRFileDesc* GetNSSModelSocket();
35 35
36 // Return cipher suites that the library knows about (not necessarily
37 // implemented) and are not disabled by default at initialization.
38 const std::vector<uint16>& GetNSSDefaultEnabledCipherSuites();
39
36 // Map NSS error code to network error code. 40 // Map NSS error code to network error code.
37 int MapNSSError(PRErrorCode err); 41 int MapNSSError(PRErrorCode err);
38 42
39 // Creates a NetLog callback for an SSL error. 43 // Creates a NetLog callback for an SSL error.
40 NetLog::ParametersCallback CreateNetLogSSLErrorCallback(int net_error, 44 NetLog::ParametersCallback CreateNetLogSSLErrorCallback(int net_error,
41 int ssl_lib_error); 45 int ssl_lib_error);
42 46
43 47
44 } // namespace net 48 } // namespace net
45 49
46 #endif // NET_SOCKET_NSS_SSL_UTIL_H_ 50 #endif // NET_SOCKET_NSS_SSL_UTIL_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/socket/nss_ssl_util.cc » ('j') | net/socket/ssl_client_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698