OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_API_ORTC_SRTPTRANSPORTINTERFACE_H_ | |
12 #define WEBRTC_API_ORTC_SRTPTRANSPORTINTERFACE_H_ | |
13 | |
14 #include "webrtc/api/ortc/rtptransportinterface.h" | |
15 #include "webrtc/api/rtcerror.h" | |
16 #include "webrtc/media/base/cryptoparams.h" | |
17 | |
18 namespace webrtc { | |
19 | |
20 // The subclass of the RtpTransport which uses SRTP. The keying information | |
21 // is explicitly passed in from the application. | |
22 // | |
23 // After applying the answer, the negotiated keying information from the offer | |
Taylor Brandstetter
2017/03/01 19:18:07
I'd say "If using SDP and SDES (RFC4568) for signa
Zhi Huang
2017/03/02 23:35:39
Done.
| |
24 // and answer would be set and the SRTP would be active. | |
25 // | |
26 // Note that Edge's implementation of ORTC provides a similar API point, called | |
27 // RTCSrtpSdesTransport: | |
28 // https://msdn.microsoft.com/en-us/library/mt502527(v=vs.85).aspx | |
29 class SrtpTransportInterface : public RtpTransportInterface { | |
30 public: | |
31 virtual ~SrtpTransportInterface() {} | |
32 | |
33 // Set the SRTP keying material for outgoing stream from the application. | |
Taylor Brandstetter
2017/03/01 19:18:07
nit: "streams" or "stream(s)" instead of "stream",
Zhi Huang
2017/03/02 23:35:39
Done.
| |
34 virtual RTCError SetSrtpSendKey(const cricket::CryptoParams& params) = 0; | |
Taylor Brandstetter
2017/03/01 19:18:07
We should document the current limitations of the
Zhi Huang
2017/03/02 23:35:39
Done.
| |
35 | |
36 // Set the SRTP keying material for incoming stream from the application. | |
37 virtual RTCError SetSrtpReceiveKey(const cricket::CryptoParams& params) = 0; | |
38 }; | |
39 | |
40 } // namespace webrtc | |
41 | |
42 #endif // WEBRTC_API_ORTC_SRTPTRANSPORTINTERFACE_H_ | |
OLD | NEW |