diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-09-03 21:40:34 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-09-03 21:40:34 +0400 |
commit | 9739251101bffde2c62ba08c1869eb170d952d5b (patch) | |
tree | 41f59ad7a2c6fc855404f808cba887d88a32c96a /accel-pppd/ctrl/pppoe/pppoe.c | |
parent | 44adc2a544ea23aee39105b048c8f90cef565a5b (diff) | |
download | accel-ppp-9739251101bffde2c62ba08c1869eb170d952d5b.tar.gz accel-ppp-9739251101bffde2c62ba08c1869eb170d952d5b.zip |
implemented crypto library selection: -DCRYPTO=OPENSSL|TOMCRYPT|INTERNAL (default OPENSSL)
Diffstat (limited to 'accel-pppd/ctrl/pppoe/pppoe.c')
-rw-r--r-- | accel-pppd/ctrl/pppoe/pppoe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c index 92934034..4d04f07f 100644 --- a/accel-pppd/ctrl/pppoe/pppoe.c +++ b/accel-pppd/ctrl/pppoe/pppoe.c @@ -13,7 +13,7 @@ #include <arpa/inet.h> #include <printf.h> -#include <openssl/md5.h> +#include "crypto.h" #include "events.h" #include "triton.h" @@ -459,7 +459,6 @@ static void generate_cookie(struct pppoe_serv_t *serv, const uint8_t *src, uint8 uint8_t raw[24]; } u1, u2; - memset(&key, 0, sizeof(key)); DES_random_key(&key); DES_set_key(&key, &ks); |