mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Latest changes
- A few fixes to code and README
This commit is contained in:
parent
2c6a63be85
commit
67b0dc159d
5 changed files with 25 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2017-09-29
|
||||||
|
|
||||||
|
- A few fixes to code and README
|
||||||
|
|
||||||
2017-09-28
|
2017-09-28
|
||||||
|
|
||||||
- Add support for Q041; drop support for Q040
|
- Add support for Q041; drop support for Q040
|
||||||
|
|
|
@ -48,6 +48,10 @@ ELSE()
|
||||||
#SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLSQUIC_LOWEST_LOG_LEVEL=LSQ_LOG_INFO")
|
#SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLSQUIC_LOWEST_LOG_LEVEL=LSQ_LOG_INFO")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
IF(LSQUIC_PROFILE EQUAL 1)
|
||||||
|
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -g -pg")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(MY_CMAKE_FLAGS MATCHES "fsanitize=address")
|
IF(MY_CMAKE_FLAGS MATCHES "fsanitize=address")
|
||||||
MESSAGE(STATUS "AddressSanitizer is ON")
|
MESSAGE(STATUS "AddressSanitizer is ON")
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
18
README.md
18
README.md
|
@ -47,7 +47,7 @@ cd boringssl
|
||||||
2. Check out stable branch:
|
2. Check out stable branch:
|
||||||
|
|
||||||
```
|
```
|
||||||
git co chromium-stable
|
git checkout chromium-stable
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Compile the library
|
3. Compile the library
|
||||||
|
@ -71,8 +71,8 @@ To install these in `/usr/local/lib`, you should do the following:
|
||||||
```
|
```
|
||||||
BORINGSSL_SOURCE=$PWD
|
BORINGSSL_SOURCE=$PWD
|
||||||
cd /usr/local/lib
|
cd /usr/local/lib
|
||||||
sudo cp $BORINGSSL_SOURCE/ssl/libssl.a
|
sudo cp $BORINGSSL_SOURCE/ssl/libssl.a .
|
||||||
sudo cp $BORINGSSL_SOURCE/crypto/libcrypto.a
|
sudo cp $BORINGSSL_SOURCE/crypto/libcrypto.a .
|
||||||
```
|
```
|
||||||
|
|
||||||
If you do not want to install the library (or do not have root), you
|
If you do not want to install the library (or do not have root), you
|
||||||
|
@ -92,13 +92,23 @@ Building LSQUIC Client Library
|
||||||
LSQUIC's `http_client` and the tests link BoringSSL libraries statically.
|
LSQUIC's `http_client` and the tests link BoringSSL libraries statically.
|
||||||
Following previous section, you can build LSQUIC as follows:
|
Following previous section, you can build LSQUIC as follows:
|
||||||
|
|
||||||
|
1. Get the source code
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/litespeedtech/lsquic-client.git
|
||||||
|
cd lsquic-client
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Compile the library
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include \
|
cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include \
|
||||||
-DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
|
-DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
Run tests:
|
3. Run tests
|
||||||
|
|
||||||
```
|
```
|
||||||
make test
|
make test
|
||||||
|
|
|
@ -664,14 +664,14 @@ int verify_prof0(const uint8_t *chlo_data, size_t chlo_data_len,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void crypto_init(void *seed, int seed_len)
|
void crypto_init(void)
|
||||||
{
|
{
|
||||||
if (crypto_inited)
|
if (crypto_inited)
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
//SSL_library_init();
|
//SSL_library_init();
|
||||||
CRYPTO_library_init();
|
CRYPTO_library_init();
|
||||||
RAND_seed(seed, seed_len);
|
/* XXX Should we seed? If yes, wherewith? */ // RAND_seed(seed, seed_len);
|
||||||
|
|
||||||
#if defined( __x86_64 )||defined( __x86_64__ )
|
#if defined( __x86_64 )||defined( __x86_64__ )
|
||||||
make_uint128(&s_prime, 16777216, 315);
|
make_uint128(&s_prime, 16777216, 315);
|
||||||
|
|
|
@ -25,7 +25,7 @@ struct lsquic_str;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void crypto_init();
|
void crypto_init(void);
|
||||||
|
|
||||||
/* XXX: why have a wrapper around RAND_bytes? */
|
/* XXX: why have a wrapper around RAND_bytes? */
|
||||||
void rand_bytes(void *data, int len);
|
void rand_bytes(void *data, int len);
|
||||||
|
|
Loading…
Reference in a new issue