mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Moved the include of lwip_md5.h or md5.h into the #if PPP_MD5_RANDM block, as suggested by Ivan Delamer
This commit is contained in:
parent
c5c1012ddd
commit
1adb900561
@ -76,6 +76,9 @@
|
||||
#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
|
||||
|
||||
#include "ppp_impl.h"
|
||||
#include "magic.h"
|
||||
|
||||
#if PPP_MD5_RANDM /* Using MD5 for better randomness if enabled */
|
||||
|
||||
#if LWIP_INCLUDED_POLARSSL_MD5
|
||||
#include "polarssl/lwip_md5.h"
|
||||
@ -83,10 +86,6 @@
|
||||
#include "polarssl/md5.h"
|
||||
#endif
|
||||
|
||||
#include "magic.h"
|
||||
|
||||
#if PPP_MD5_RANDM /* Using MD5 for better randomness if enabled */
|
||||
|
||||
#define MAGIC_RANDPOOLSIZE 16 /* Bytes stored in the pool of randomness. */
|
||||
|
||||
/*****************************/
|
||||
|
@ -105,7 +105,7 @@ u32_t magic(void); /* Returns the next magic number */
|
||||
* Fill buffer with random bytes
|
||||
*
|
||||
* Use the random pool to generate random data. This degrades to pseudo
|
||||
* random when used faster than randomness is supplied using churnRand().
|
||||
* random when used faster than randomness is supplied using magic_churnrand().
|
||||
* Thus it's important to make sure that the results of this are not
|
||||
* published directly because one could predict the next result to at
|
||||
* least some degree. Also, it's important to get a good seed before
|
||||
|
Loading…
Reference in New Issue
Block a user