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

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

Issue 1269843005: Added DtlsCertificate, a ref counted object owning an SSLIdentity (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master Created 5 years, 4 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual bool GetOption(rtc::Socket::Option opt, int* value); 53 virtual bool GetOption(rtc::Socket::Option opt, int* value);
54 virtual int GetError(); 54 virtual int GetError();
55 virtual IceRole GetIceRole() const; 55 virtual IceRole GetIceRole() const;
56 virtual bool GetStats(ConnectionInfos* infos); 56 virtual bool GetStats(ConnectionInfos* infos);
57 virtual bool IsDtlsActive() const; 57 virtual bool IsDtlsActive() const;
58 virtual bool GetSslRole(rtc::SSLRole* role) const; 58 virtual bool GetSslRole(rtc::SSLRole* role) const;
59 virtual bool SetSslRole(rtc::SSLRole role); 59 virtual bool SetSslRole(rtc::SSLRole role);
60 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers); 60 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers);
61 virtual bool GetSrtpCipher(std::string* cipher); 61 virtual bool GetSrtpCipher(std::string* cipher);
62 virtual bool GetSslCipher(std::string* cipher); 62 virtual bool GetSslCipher(std::string* cipher);
63 virtual bool GetLocalIdentity(rtc::SSLIdentity** identity) const; 63 bool GetLocalCertificate(
64 rtc::scoped_refptr<webrtc::DtlsCertificate>* certificate) const override;
64 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const; 65 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const;
65 virtual bool ExportKeyingMaterial(const std::string& label, 66 virtual bool ExportKeyingMaterial(const std::string& label,
66 const uint8* context, 67 const uint8* context,
67 size_t context_len, 68 size_t context_len,
68 bool use_context, 69 bool use_context,
69 uint8* result, 70 uint8* result,
70 size_t result_len); 71 size_t result_len);
71 72
72 private: 73 private:
73 // Catch signals from the implementation channel. These just forward to the 74 // Catch signals from the implementation channel. These just forward to the
(...skipping 13 matching lines...) Expand all
87 TransportChannelImpl* impl_; 88 TransportChannelImpl* impl_;
88 OptionList options_; 89 OptionList options_;
89 std::vector<std::string> pending_srtp_ciphers_; 90 std::vector<std::string> pending_srtp_ciphers_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(TransportChannelProxy); 92 DISALLOW_COPY_AND_ASSIGN(TransportChannelProxy);
92 }; 93 };
93 94
94 } // namespace cricket 95 } // namespace cricket
95 96
96 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELPROXY_H_ 97 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELPROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698