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

Side by Side Diff: webrtc/base/opensslstreamadapter.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/api/webrtcsession.cc ('k') | webrtc/base/opensslstreamadapter.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 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ~OpenSSLStreamAdapter() override; 62 ~OpenSSLStreamAdapter() override;
63 63
64 void SetIdentity(SSLIdentity* identity) override; 64 void SetIdentity(SSLIdentity* identity) override;
65 65
66 // Default argument is for compatibility 66 // Default argument is for compatibility
67 void SetServerRole(SSLRole role = SSL_SERVER) override; 67 void SetServerRole(SSLRole role = SSL_SERVER) override;
68 bool SetPeerCertificateDigest(const std::string& digest_alg, 68 bool SetPeerCertificateDigest(const std::string& digest_alg,
69 const unsigned char* digest_val, 69 const unsigned char* digest_val,
70 size_t digest_len) override; 70 size_t digest_len) override;
71 71
72 bool GetPeerCertificate(SSLCertificate** cert) const override; 72 rtc::scoped_ptr<SSLCertificate> GetPeerCertificate() const override;
73 73
74 int StartSSLWithServer(const char* server_name) override; 74 int StartSSLWithServer(const char* server_name) override;
75 int StartSSLWithPeer() override; 75 int StartSSLWithPeer() override;
76 void SetMode(SSLMode mode) override; 76 void SetMode(SSLMode mode) override;
77 void SetMaxProtocolVersion(SSLProtocolVersion version) override; 77 void SetMaxProtocolVersion(SSLProtocolVersion version) override;
78 78
79 StreamResult Read(void* data, 79 StreamResult Read(void* data,
80 size_t data_len, 80 size_t data_len,
81 size_t* read, 81 size_t* read,
82 int* error) override; 82 int* error) override;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Max. allowed protocol version 208 // Max. allowed protocol version
209 SSLProtocolVersion ssl_max_version_; 209 SSLProtocolVersion ssl_max_version_;
210 }; 210 };
211 211
212 ///////////////////////////////////////////////////////////////////////////// 212 /////////////////////////////////////////////////////////////////////////////
213 213
214 } // namespace rtc 214 } // namespace rtc
215 215
216 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ 216 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__
OLDNEW
« no previous file with comments | « webrtc/api/webrtcsession.cc ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698