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

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

Issue 2815513012: Negotiate the same SRTP crypto suites for every DTLS association formed. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual const std::string& transport_name() const = 0; 42 virtual const std::string& transport_name() const = 0;
43 43
44 virtual int component() const = 0; 44 virtual int component() const = 0;
45 45
46 virtual bool IsDtlsActive() const = 0; 46 virtual bool IsDtlsActive() const = 0;
47 47
48 virtual bool GetSslRole(rtc::SSLRole* role) const = 0; 48 virtual bool GetSslRole(rtc::SSLRole* role) const = 0;
49 49
50 virtual bool SetSslRole(rtc::SSLRole role) = 0; 50 virtual bool SetSslRole(rtc::SSLRole role) = 0;
51 51
52 // Sets up the ciphers to use for DTLS-SRTP.
53 virtual bool SetSrtpCryptoSuites(const std::vector<int>& ciphers) = 0;
54
55 // Keep the original one for backward compatibility until all dependencies
56 // move away. TODO(zhihuang): Remove this function.
57 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0;
58
59 // Finds out which DTLS-SRTP cipher was negotiated. 52 // Finds out which DTLS-SRTP cipher was negotiated.
60 // TODO(zhihuang): Remove this once all dependencies implement this. 53 // TODO(zhihuang): Remove this once all dependencies implement this.
61 virtual bool GetSrtpCryptoSuite(int* cipher) = 0; 54 virtual bool GetSrtpCryptoSuite(int* cipher) = 0;
62 55
63 // Finds out which DTLS cipher was negotiated. 56 // Finds out which DTLS cipher was negotiated.
64 // TODO(zhihuang): Remove this once all dependencies implement this. 57 // TODO(zhihuang): Remove this once all dependencies implement this.
65 virtual bool GetSslCipherSuite(int* cipher) = 0; 58 virtual bool GetSslCipherSuite(int* cipher) = 0;
66 59
67 // Gets the local RTCCertificate used for DTLS. 60 // Gets the local RTCCertificate used for DTLS.
68 virtual rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() 61 virtual rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate()
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 protected: 97 protected:
105 DtlsTransportInternal() {} 98 DtlsTransportInternal() {}
106 99
107 private: 100 private:
108 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal); 101 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal);
109 }; 102 };
110 103
111 } // namespace cricket 104 } // namespace cricket
112 105
113 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ 106 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698