Latest changes

- A few fixes to code and README
This commit is contained in:
Dmitri Tikhonov 2017-09-29 11:18:32 -04:00
parent 2c6a63be85
commit 67b0dc159d
5 changed files with 25 additions and 7 deletions

View file

@ -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)
return ;
//SSL_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__ )
make_uint128(&s_prime, 16777216, 315);

View file

@ -25,7 +25,7 @@ struct lsquic_str;
#endif
void crypto_init();
void crypto_init(void);
/* XXX: why have a wrapper around RAND_bytes? */
void rand_bytes(void *data, int len);