OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Sets up the ciphers to use for DTLS-SRTP. | 102 // Sets up the ciphers to use for DTLS-SRTP. |
103 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0; | 103 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0; |
104 | 104 |
105 // Finds out which DTLS-SRTP cipher was negotiated. | 105 // Finds out which DTLS-SRTP cipher was negotiated. |
106 virtual bool GetSrtpCipher(std::string* cipher) = 0; | 106 virtual bool GetSrtpCipher(std::string* cipher) = 0; |
107 | 107 |
108 // Finds out which DTLS cipher was negotiated. | 108 // Finds out which DTLS cipher was negotiated. |
109 virtual bool GetSslCipher(std::string* cipher) = 0; | 109 virtual bool GetSslCipher(std::string* cipher) = 0; |
110 | 110 |
111 // Gets a copy of the local SSL identity, owned by the caller. | 111 // Gets a copy of the local SSL identity, owned by the caller. |
112 virtual bool GetLocalIdentity(rtc::SSLIdentity** identity) const = 0; | 112 virtual bool GetLocalCertificate( |
| 113 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) const = 0; |
113 | 114 |
114 // Gets a copy of the remote side's SSL certificate, owned by the caller. | 115 // Gets a copy of the remote side's SSL certificate, owned by the caller. |
115 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const = 0; | 116 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; |
116 | 117 |
117 // Allows key material to be extracted for external encryption. | 118 // Allows key material to be extracted for external encryption. |
118 virtual bool ExportKeyingMaterial(const std::string& label, | 119 virtual bool ExportKeyingMaterial(const std::string& label, |
119 const uint8* context, | 120 const uint8* context, |
120 size_t context_len, | 121 size_t context_len, |
121 bool use_context, | 122 bool use_context, |
122 uint8* result, | 123 uint8* result, |
123 size_t result_len) = 0; | 124 size_t result_len) = 0; |
124 | 125 |
125 // Signalled each time a packet is received on this channel. | 126 // Signalled each time a packet is received on this channel. |
(...skipping 29 matching lines...) Expand all Loading... |
155 bool readable_; | 156 bool readable_; |
156 bool writable_; | 157 bool writable_; |
157 bool receiving_; | 158 bool receiving_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 160 DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
160 }; | 161 }; |
161 | 162 |
162 } // namespace cricket | 163 } // namespace cricket |
163 | 164 |
164 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 165 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |