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

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

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2010 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_BASE_SSL_CIPHER_SUITE_NAMES_H_ 5 #ifndef NET_BASE_SSL_CIPHER_SUITE_NAMES_H_
6 #define NET_BASE_SSL_CIPHER_SUITE_NAMES_H_ 6 #define NET_BASE_SSL_CIPHER_SUITE_NAMES_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/net_api.h"
10 11
11 namespace net { 12 namespace net {
12 13
13 // SSLCipherSuiteToStrings returns three strings for a given cipher suite 14 // SSLCipherSuiteToStrings returns three strings for a given cipher suite
14 // number, the name of the key exchange algorithm, the name of the cipher and 15 // number, the name of the key exchange algorithm, the name of the cipher and
15 // the name of the MAC. The cipher suite number is the number as sent on the 16 // the name of the MAC. The cipher suite number is the number as sent on the
16 // wire and recorded at 17 // wire and recorded at
17 // http://www.iana.org/assignments/tls-parameters/tls-parameters.xml 18 // http://www.iana.org/assignments/tls-parameters/tls-parameters.xml
18 // If the cipher suite is unknown, the strings are set to "???". 19 // If the cipher suite is unknown, the strings are set to "???".
19 void SSLCipherSuiteToStrings(const char** key_exchange_str, 20 NET_API void SSLCipherSuiteToStrings(const char** key_exchange_str,
20 const char** cipher_str, const char** mac_str, 21 const char** cipher_str,
21 uint16 cipher_suite); 22 const char** mac_str,
23 uint16 cipher_suite);
22 24
23 // SSLCompressionToString returns the name of the compression algorithm 25 // SSLCompressionToString returns the name of the compression algorithm
24 // specified by |compression_method|, which is the TLS compression id. 26 // specified by |compression_method|, which is the TLS compression id.
25 // If the algorithm is unknown, |name| is set to "???". 27 // If the algorithm is unknown, |name| is set to "???".
26 void SSLCompressionToString(const char** name, uint8 compression_method); 28 NET_API void SSLCompressionToString(const char** name,
29 uint8 compression_method);
27 30
28 // SSLVersionToString returns the name of the SSL protocol version 31 // SSLVersionToString returns the name of the SSL protocol version
29 // specified by |ssl_version|, which is defined in 32 // specified by |ssl_version|, which is defined in
30 // net/base/ssl_connection_status_flags.h. 33 // net/base/ssl_connection_status_flags.h.
31 // If the version is unknown, |name| is set to "???". 34 // If the version is unknown, |name| is set to "???".
32 void SSLVersionToString(const char** name, int ssl_version); 35 NET_API void SSLVersionToString(const char** name, int ssl_version);
33 36
34 } // namespace net 37 } // namespace net
35 38
36 #endif // NET_BASE_SSL_CIPHER_SUITE_NAMES_H_ 39 #endif // NET_BASE_SSL_CIPHER_SUITE_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698