From: RĂ©mi Denis-Courmont Date: Sat, 10 Mar 2007 15:06:06 +0000 (+0000) Subject: Partial Win32 compile fix X-Git-Tag: 0.9.0-test0~8186 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=22c5fe4ae5640b1f2e7358dccbc720faa84616a2;hp=10ee356e2279fb0526b980927fe563a2cccea749;p=vlc Partial Win32 compile fix --- diff --git a/libs/srtp/srtp.c b/libs/srtp/srtp.c index bbe1b404ef..bb6fd5ebf4 100644 --- a/libs/srtp/srtp.c +++ b/libs/srtp/srtp.c @@ -33,9 +33,6 @@ #include -#include -#include - /* TODO: * Useful stuff: * - ROC profil thingy (multicast really needs this) @@ -79,7 +76,11 @@ enum SRTCP_SALT }; -#ifndef WIN32 +#ifdef WIN32 +# include +#else +# include +# include 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 - * ENOBUFS bufsize is too small + * ENOSPC 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 ENOBUFS; + return ENOSPC; /* FIXME: HMAC and anti-replay */ return 0;