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

Side by Side Diff: webrtc/p2p/base/transportchannel.h

Issue 1528843005: Add support for GCM cipher suites from RFC 7714. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added PeerConnection tests using GCM ciphers, fixed passing of flag through DtlsTransportChannel. Created 5 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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers); 117 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers);
118 118
119 // Finds out which DTLS-SRTP cipher was negotiated. 119 // Finds out which DTLS-SRTP cipher was negotiated.
120 // TODO(guoweis): Remove this once all dependencies implement this. 120 // TODO(guoweis): Remove this once all dependencies implement this.
121 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; } 121 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; }
122 122
123 // Finds out which DTLS cipher was negotiated. 123 // Finds out which DTLS cipher was negotiated.
124 // TODO(guoweis): Remove this once all dependencies implement this. 124 // TODO(guoweis): Remove this once all dependencies implement this.
125 virtual bool GetSslCipherSuite(int* cipher) { return false; } 125 virtual bool GetSslCipherSuite(int* cipher) { return false; }
126 126
127 // May GCM ciphers be used?
128 virtual bool IsEnableGcmCiphers() const { return false; }
129
127 // Gets the local RTCCertificate used for DTLS. 130 // Gets the local RTCCertificate used for DTLS.
128 virtual rtc::scoped_refptr<rtc::RTCCertificate> 131 virtual rtc::scoped_refptr<rtc::RTCCertificate>
129 GetLocalCertificate() const = 0; 132 GetLocalCertificate() const = 0;
130 133
131 // Gets a copy of the remote side's SSL certificate, owned by the caller. 134 // Gets a copy of the remote side's SSL certificate, owned by the caller.
132 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; 135 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0;
133 136
134 // Allows key material to be extracted for external encryption. 137 // Allows key material to be extracted for external encryption.
135 virtual bool ExportKeyingMaterial(const std::string& label, 138 virtual bool ExportKeyingMaterial(const std::string& label,
136 const uint8_t* context, 139 const uint8_t* context,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool writable_; 177 bool writable_;
175 bool receiving_; 178 bool receiving_;
176 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 179 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
177 180
178 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 181 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
179 }; 182 };
180 183
181 } // namespace cricket 184 } // namespace cricket
182 185
183 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 186 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698