OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 #include <netinet/in.h> | |
7 #include <stddef.h> | 6 #include <stddef.h> |
8 #include <stdint.h> | 7 #include <stdint.h> |
9 | 8 |
10 #include <algorithm> | 9 #include <algorithm> |
11 #include <vector> | 10 #include <vector> |
12 | 11 |
13 #include "third_party/libsrtp/include/rtp.h" | 12 #include "third_party/libsrtp/include/rtp.h" |
14 #include "third_party/libsrtp/include/rtp_priv.h" | 13 #include "third_party/libsrtp/include/rtp_priv.h" |
15 #include "third_party/libsrtp/include/srtp.h" | 14 #include "third_party/libsrtp/include/srtp.h" |
16 | 15 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 srtp_unprotect(session, &message, &out_len); | 138 srtp_unprotect(session, &message, &out_len); |
140 | 139 |
141 // |packet_size| bytes were used above. | 140 // |packet_size| bytes were used above. |
142 data += packet_size; | 141 data += packet_size; |
143 size -= packet_size; | 142 size -= packet_size; |
144 } | 143 } |
145 | 144 |
146 srtp_dealloc(session); | 145 srtp_dealloc(session); |
147 return 0; | 146 return 0; |
148 } | 147 } |
OLD | NEW |