Changeset 22c5fe4ae5640b1f2e7358dccbc720faa84616a2
- Timestamp:
- 03/10/07 16:06:06
(1 year ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1173539166 +0000
- git-parent:
[10ee356e2279fb0526b980927fe563a2cccea749]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1173539166 +0000
- Message:
Partial Win32 compile fix
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r10ee356 |
r22c5fe4 |
|
| 33 | 33 | |
|---|
| 34 | 34 | #include <gcrypt.h> |
|---|
| 35 | | |
|---|
| 36 | | #include <netinet/in.h> |
|---|
| 37 | | #include <pthread.h> |
|---|
| 38 | 35 | |
|---|
| 39 | 36 | /* TODO: |
|---|
| … | … | |
| 80 | 77 | }; |
|---|
| 81 | 78 | |
|---|
| 82 | | #ifndef WIN32 |
|---|
| | 79 | #ifdef WIN32 |
|---|
| | 80 | # include <winsock2.h> |
|---|
| | 81 | #else |
|---|
| | 82 | # include <netinet/in.h> |
|---|
| | 83 | # include <pthread.h> |
|---|
| 83 | 84 | GCRY_THREAD_OPTION_PTHREAD_IMPL; |
|---|
| 84 | 85 | #endif |
|---|
| … | … | |
| 466 | 467 | * @return 0 on success, in case of error: |
|---|
| 467 | 468 | * EINVAL malformatted RTP packet |
|---|
| 468 | | * ENOBUFS bufsize is too small |
|---|
| | 469 | * ENOSPC bufsize is too small (to add authentication tag) |
|---|
| 469 | 470 | */ |
|---|
| 470 | 471 | int |
|---|
| … | … | |
| 477 | 478 | |
|---|
| 478 | 479 | if (bufsize < (len + s->rtp.mac_len)) |
|---|
| 479 | | return ENOBUFS; |
|---|
| | 480 | return ENOSPC; |
|---|
| 480 | 481 | |
|---|
| 481 | 482 | /* FIXME: HMAC and anti-replay */ |
|---|