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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // part of the RFC defining each exporter | 160 // part of the RFC defining each exporter |
161 // usage (IN) | 161 // usage (IN) |
162 // context/context_len -- a context to bind to for this connection; | 162 // context/context_len -- a context to bind to for this connection; |
163 // optional, can be NULL, 0 (IN) | 163 // optional, can be NULL, 0 (IN) |
164 // use_context -- whether to use the context value | 164 // use_context -- whether to use the context value |
165 // (needed to distinguish no context from | 165 // (needed to distinguish no context from |
166 // zero-length ones). | 166 // zero-length ones). |
167 // result -- where to put the computed value | 167 // result -- where to put the computed value |
168 // result_len -- the length of the computed value | 168 // result_len -- the length of the computed value |
169 virtual bool ExportKeyingMaterial(const std::string& label, | 169 virtual bool ExportKeyingMaterial(const std::string& label, |
170 const uint8* context, | 170 const uint8_t* context, |
171 size_t context_len, | 171 size_t context_len, |
172 bool use_context, | 172 bool use_context, |
173 uint8* result, | 173 uint8_t* result, |
174 size_t result_len); | 174 size_t result_len); |
175 | 175 |
176 // DTLS-SRTP interface | 176 // DTLS-SRTP interface |
177 virtual bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers); | 177 virtual bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers); |
178 virtual bool GetDtlsSrtpCipher(std::string* cipher); | 178 virtual bool GetDtlsSrtpCipher(std::string* cipher); |
179 | 179 |
180 // Capabilities testing | 180 // Capabilities testing |
181 static bool HaveDtls(); | 181 static bool HaveDtls(); |
182 static bool HaveDtlsSrtp(); | 182 static bool HaveDtlsSrtp(); |
183 static bool HaveExporter(); | 183 static bool HaveExporter(); |
(...skipping 17 matching lines...) Expand all Loading... |
201 | 201 |
202 // If true (default), the client is required to provide a certificate during | 202 // If true (default), the client is required to provide a certificate during |
203 // handshake. If no certificate is given, handshake fails. This applies to | 203 // handshake. If no certificate is given, handshake fails. This applies to |
204 // server mode only. | 204 // server mode only. |
205 bool client_auth_enabled_; | 205 bool client_auth_enabled_; |
206 }; | 206 }; |
207 | 207 |
208 } // namespace rtc | 208 } // namespace rtc |
209 | 209 |
210 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 210 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
OLD | NEW |