On Sun, Nov 12, 2017 at 12:18:36AM +0800, Antonio Quartulli wrote: > --- a/src/openvpn/crypto.h > +++ b/src/openvpn/crypto.h > @@ -459,6 +459,9 @@ void prng_bytes(uint8_t *output, int len); > > void prng_uninit(void); > > +/* an analogue to the random() function, but use prng_bytes */ > +long int get_random(void); > + > void test_crypto(struct crypto_options *co, struct frame *f); > > > @@ -514,5 +517,10 @@ key_ctx_bi_defined(const struct key_ctx_bi *key) > } > > > +#else > + > +/* use plain random is no crypto support is compiled */
Minor typo, "is" -> "if" > +#define get_random random > + > #endif /* ENABLE_CRYPTO */ > #endif /* CRYPTO_H */ Regards Simon -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel