Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
22c5fe4a
Commit
22c5fe4a
authored
Mar 10, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial Win32 compile fix
parent
10ee356e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
libs/srtp/srtp.c
libs/srtp/srtp.c
+7
-6
No files found.
libs/srtp/srtp.c
View file @
22c5fe4a
...
...
@@ -33,9 +33,6 @@
#include <gcrypt.h>
#include <netinet/in.h>
#include <pthread.h>
/* TODO:
* Useful stuff:
* - ROC profil thingy (multicast really needs this)
...
...
@@ -79,7 +76,11 @@ enum
SRTCP_SALT
};
#ifndef WIN32
#ifdef WIN32
# include <winsock2.h>
#else
# include <netinet/in.h>
# include <pthread.h>
GCRY_THREAD_OPTION_PTHREAD_IMPL
;
#endif
...
...
@@ -465,7 +466,7 @@ static int srtp_encrypt (srtp_session_t *s, uint8_t *buf, size_t len)
*
* @return 0 on success, in case of error:
* EINVAL malformatted RTP packet
* ENO
BUFS bufsize is too small
* ENO
SPC bufsize is too small (to add authentication tag)
*/
int
srtp_send
(
srtp_session_t
*
s
,
uint8_t
*
buf
,
size_t
*
lenp
,
size_t
bufsize
)
...
...
@@ -476,7 +477,7 @@ srtp_send (srtp_session_t *s, uint8_t *buf, size_t *lenp, size_t bufsize)
return
val
;
if
(
bufsize
<
(
len
+
s
->
rtp
.
mac_len
))
return
ENO
BUFS
;
return
ENO
SPC
;
/* FIXME: HMAC and anti-replay */
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment