Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
22c5fe4a
Commit
22c5fe4a
authored
18 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
Partial Win32 compile fix
parent
10ee356e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/srtp/srtp.c
+7
-6
7 additions, 6 deletions
libs/srtp/srtp.c
with
7 additions
and
6 deletions
libs/srtp/srtp.c
+
7
−
6
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment