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

Unified Diff: test/rtp.c

Issue 2344973002: Update libsrtp to version 2.0 (Closed)
Patch Set: Add '.' back to include_dirs Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/roc_driver.c ('k') | test/rtpw.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rtp.c
diff --git a/srtp/test/rtp.c b/test/rtp.c
similarity index 96%
rename from srtp/test/rtp.c
rename to test/rtp.c
index 20c50f4663b2cfb328efc2e6c3a80a570159ef28..59196fdbdf5ecfe1c9392e999d79d12a290d18ba 100644
--- a/srtp/test/rtp.c
+++ b/test/rtp.c
@@ -59,7 +59,7 @@
int
rtp_sendto(rtp_sender_t sender, const void* msg, int len) {
int octets_sent;
- err_status_t stat;
+ srtp_err_status_t stat;
int pkt_len = len + RTP_HEADER_LEN;
/* marshal data */
@@ -99,7 +99,7 @@ rtp_sendto(rtp_sender_t sender, const void* msg, int len) {
int
rtp_recvfrom(rtp_receiver_t receiver, void *msg, int *len) {
int octets_recvd;
- err_status_t stat;
+ srtp_err_status_t stat;
octets_recvd = recvfrom(receiver->socket, (void *)&receiver->message,
*len, 0, (struct sockaddr *) NULL, 0);
@@ -129,8 +129,8 @@ rtp_recvfrom(rtp_receiver_t receiver, void *msg, int *len) {
if (stat) {
fprintf(stderr,
"error: srtp unprotection failed with code %d%s\n", stat,
- stat == err_status_replay_fail ? " (replay check failed)" :
- stat == err_status_auth_fail ? " (auth check failed)" : "");
+ stat == srtp_err_status_replay_fail ? " (replay check failed)" :
+ stat == srtp_err_status_auth_fail ? " (auth check failed)" : "");
return -1;
}
strncpy(msg, receiver->message.body, octets_recvd);
« no previous file with comments | « test/roc_driver.c ('k') | test/rtpw.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698