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

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

Issue 1802013002: A bunch of interfaces: Return scoped_ptr<SSLCertificate> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: less auto Created 4 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
« no previous file with comments | « webrtc/base/sslstreamadapter_unittest.cc ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool GetSrtpCryptoSuite(int* cipher) override; 130 bool GetSrtpCryptoSuite(int* cipher) override;
131 131
132 bool GetSslRole(rtc::SSLRole* role) const override; 132 bool GetSslRole(rtc::SSLRole* role) const override;
133 bool SetSslRole(rtc::SSLRole role) override; 133 bool SetSslRole(rtc::SSLRole role) override;
134 134
135 // Find out which DTLS cipher was negotiated 135 // Find out which DTLS cipher was negotiated
136 bool GetSslCipherSuite(int* cipher) override; 136 bool GetSslCipherSuite(int* cipher) override;
137 137
138 // Once DTLS has been established, this method retrieves the certificate in 138 // Once DTLS has been established, this method retrieves the certificate in
139 // use by the remote peer, for use in external identity verification. 139 // use by the remote peer, for use in external identity verification.
140 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override; 140 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() const override;
141 141
142 // Once DTLS has established (i.e., this channel is writable), this method 142 // Once DTLS has established (i.e., this channel is writable), this method
143 // extracts the keys negotiated during the DTLS handshake, for use in external 143 // extracts the keys negotiated during the DTLS handshake, for use in external
144 // encryption. DTLS-SRTP uses this to extract the needed SRTP keys. 144 // encryption. DTLS-SRTP uses this to extract the needed SRTP keys.
145 // See the SSLStreamAdapter documentation for info on the specific parameters. 145 // See the SSLStreamAdapter documentation for info on the specific parameters.
146 bool ExportKeyingMaterial(const std::string& label, 146 bool ExportKeyingMaterial(const std::string& label,
147 const uint8_t* context, 147 const uint8_t* context,
148 size_t context_len, 148 size_t context_len,
149 bool use_context, 149 bool use_context,
150 uint8_t* result, 150 uint8_t* result,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 rtc::SSLProtocolVersion ssl_max_version_; 235 rtc::SSLProtocolVersion ssl_max_version_;
236 rtc::Buffer remote_fingerprint_value_; 236 rtc::Buffer remote_fingerprint_value_;
237 std::string remote_fingerprint_algorithm_; 237 std::string remote_fingerprint_algorithm_;
238 238
239 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 239 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
240 }; 240 };
241 241
242 } // namespace cricket 242 } // namespace cricket
243 243
244 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 244 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapter_unittest.cc ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698