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:
Sylvain Rochet 2012-08-18 12:56:59 +02:00
parent c5c1012ddd
commit 1adb900561
2 changed files with 4 additions and 5 deletions

View File

@ -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. */
/*****************************/

View File

@ -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