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

Unified Diff: net/ssl/ssl_cipher_suite_names.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/ssl_cert_request_info.cc ('k') | net/ssl/ssl_cipher_suite_names.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_cipher_suite_names.h
diff --git a/net/ssl/ssl_cipher_suite_names.h b/net/ssl/ssl_cipher_suite_names.h
deleted file mode 100644
index 4e02fc63462d0faaba728a08e323a3fdbf108a16..0000000000000000000000000000000000000000
--- a/net/ssl/ssl_cipher_suite_names.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
-#define NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "net/base/net_export.h"
-
-namespace net {
-
-// SSLCipherSuiteToStrings returns three strings for a given cipher suite
-// number, the name of the key exchange algorithm, the name of the cipher and
-// the name of the MAC. The cipher suite number is the number as sent on the
-// wire and recorded at
-// http://www.iana.org/assignments/tls-parameters/tls-parameters.xml
-// If the cipher suite is unknown, the strings are set to "???".
-// In the case of an AEAD cipher suite, *mac_str is NULL and *is_aead is true.
-NET_EXPORT void SSLCipherSuiteToStrings(const char** key_exchange_str,
- const char** cipher_str,
- const char** mac_str,
- bool* is_aead,
- uint16 cipher_suite);
-
-// SSLVersionToString returns the name of the SSL protocol version
-// specified by |ssl_version|, which is defined in
-// net/ssl/ssl_connection_status_flags.h.
-// If the version is unknown, |name| is set to "???".
-NET_EXPORT void SSLVersionToString(const char** name, int ssl_version);
-
-// Parses a string literal that represents a SSL/TLS cipher suite.
-//
-// Supported literal forms:
-// 0xAABB, where AA is cipher_suite[0] and BB is cipher_suite[1], as
-// defined in RFC 2246, Section 7.4.1.2. Unrecognized but parsable cipher
-// suites in this form will not return an error.
-//
-// Returns true if the cipher suite was successfully parsed, storing the
-// result in |cipher_suite|.
-//
-// TODO(rsleevi): Support the full strings defined in the IANA TLS parameters
-// list.
-NET_EXPORT bool ParseSSLCipherString(const std::string& cipher_string,
- uint16* cipher_suite);
-
-// |cipher_suite| is the IANA id for the cipher suite. What a "secure"
-// cipher suite is arbitrarily determined here. The intent is to indicate what
-// cipher suites meet modern security standards when backwards compatibility can
-// be ignored. Notably, HTTP/2 requires/encourages this sort of validation of
-// cipher suites: https://http2.github.io/http2-spec/#TLSUsage.
-//
-// Currently, this function follows these criteria:
-// 1) Only uses forward secure key exchanges
-// 2) Only uses AEADs
-NET_EXPORT bool IsSecureTLSCipherSuite(uint16 cipher_suite);
-
-} // namespace net
-
-#endif // NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
« no previous file with comments | « net/ssl/ssl_cert_request_info.cc ('k') | net/ssl/ssl_cipher_suite_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698