]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commit
PPP, magic, enables building without PPP_MD5_RANDM support
authorSylvain Rochet <gradator@gradator.net>
Sun, 30 Aug 2015 16:41:41 +0000 (18:41 +0200)
committerSylvain Rochet <gradator@gradator.net>
Sun, 30 Aug 2015 19:09:39 +0000 (21:09 +0200)
commitd0fa8acf86494546111d134e8871930f34059574
tree2314e5b00fff6fa1757b57ae4d26c961c9a6b089
parentced7bef274b06f3e6d124857d1f0b3d255ff7d5c
PPP, magic, enables building without PPP_MD5_RANDM support

The only API difference with and without the PPP_MD5_RANDM support is the
availability of the random_bytes() function. Added a random_bytes()
function on top of magic() when PPP_MD5_RANDM support is not enabled,
thus allowing builds for both cases.

PPP_MD5_RANDM is still enabled by default (it was mandatory) if a protocol
using encryption is enabled, such as CHAP, EAP, or L2TP auth support.
src/include/lwip/opt.h
src/include/netif/ppp/magic.h
src/netif/ppp/magic.c