Latest changes

- Add support for Mac OS
- Add support for Raspberry Pi
- Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
This commit is contained in:
Dmitri Tikhonov 2017-09-26 11:26:05 -04:00
parent 50aadb33c7
commit e019799402
16 changed files with 221 additions and 75 deletions

View file

@ -8,6 +8,7 @@
#include <openssl/x509.h>
#include <openssl/rand.h>
#include <openssl/curve25519.h>
#include <openssl/hmac.h>
#include <zlib.h>

View file

@ -1907,12 +1907,6 @@ process_stream_ready_to_send (struct full_conn *conn, lsquic_stream_t *stream,
{
if (LSQUIC_STREAM_HANDSHAKE == stream->id)
{
#if LSQUIC_STREAM_HANDSHAKE
/* Full connection implies that the server has completed the
* handshake:
*/
assert(0 == (conn->fc_flags & FC_SERVER));
#endif
/* Handshake messages are sent in brand-new packets. If handshake
* is not complete, the packet is zero-padded.
*/

View file

@ -13,6 +13,11 @@
#define bswap_16 bswap16
#define bswap_32 bswap32
#define bswap_64 bswap64
#elif defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define bswap_16 OSSwapInt16
#define bswap_32 OSSwapInt32
#define bswap_64 OSSwapInt64
#else
#include <byteswap.h>
#endif

View file

@ -498,13 +498,13 @@ lsquic_stream_write_avail (const lsquic_stream_t *stream)
conn_avail = lsquic_conn_cap_avail(&stream->conn_pub->conn_cap);
if (conn_avail < stream_avail)
{
LSQ_DEBUG("stream %u write buffer is limited by connection: %jd",
stream->id, conn_avail);
LSQ_DEBUG("stream %u write buffer is limited by connection: "
"%"PRIu64, stream->id, conn_avail);
return conn_avail;
}
}
LSQ_DEBUG("stream %u write buffer is limited by stream: %jd",
LSQ_DEBUG("stream %u write buffer is limited by stream: %"PRIu64,
stream->id, stream_avail);
return stream_avail;
}