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

Side by Side Diff: net/ssl/ssl_cipher_suite_names.h

Issue 291093002: Fail the SPDY transaction if it does not meet TLS base requirements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 months 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ 5 #ifndef NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
6 #define NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ 6 #define NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 // suites in this form will not return an error. 39 // suites in this form will not return an error.
40 // 40 //
41 // Returns true if the cipher suite was successfully parsed, storing the 41 // Returns true if the cipher suite was successfully parsed, storing the
42 // result in |cipher_suite|. 42 // result in |cipher_suite|.
43 // 43 //
44 // TODO(rsleevi): Support the full strings defined in the IANA TLS parameters 44 // TODO(rsleevi): Support the full strings defined in the IANA TLS parameters
45 // list. 45 // list.
46 NET_EXPORT bool ParseSSLCipherString(const std::string& cipher_string, 46 NET_EXPORT bool ParseSSLCipherString(const std::string& cipher_string,
47 uint16* cipher_suite); 47 uint16* cipher_suite);
48 48
49 // |cipher_suite| is the IANA id for the cipher suite. What a "modern"
50 // cipher suite is arbitrarily determined here. The intent is to indicate what
51 // cipher suites meet modern security standards when backwards compatibility can
52 // be ignored. Notably, HTTP/2 requires/encourages this sort of validation of
53 // cipher suites: https://http2.github.io/http2-spec/#TLSUsage.
54 NET_EXPORT_PRIVATE bool IsModernTLSCipherSuite(uint16 cipher_suite);
wtc 2014/05/21 21:51:10 1. Nit: it seems that this function should be rena
willchan no longer on Chromium 2014/05/21 22:55:22 I've renamed to IsSecureTLSCipherSuite and added t
55
49 } // namespace net 56 } // namespace net
50 57
51 #endif // NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ 58 #endif // NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698