diff options
| -rw-r--r-- | sys/modules/netgraph/mppc/Makefile | 3 | ||||
| -rw-r--r-- | sys/netgraph/ng_mppc.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/modules/netgraph/mppc/Makefile b/sys/modules/netgraph/mppc/Makefile index 645781fb0149..7e337f4f4c44 100644 --- a/sys/modules/netgraph/mppc/Makefile +++ b/sys/modules/netgraph/mppc/Makefile @@ -15,8 +15,7 @@ SRCS+= mppcc.c mppcd.c .if ${NETGRAPH_MPPC_ENCRYPTION} > 0 .PATH: ${.CURDIR}/../../../crypto -.PATH: ${.CURDIR}/../../../crypto/rc4 -SRCS+= rc4.c sha1.c +SRCS+= sha1.c .endif opt_netgraph.h: diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c index 9637df8ee440..6d20796627de 100644 --- a/sys/netgraph/ng_mppc.c +++ b/sys/netgraph/ng_mppc.c @@ -170,6 +170,11 @@ static struct ng_type ng_mppc_typestruct = { }; NETGRAPH_INIT(mppc, &ng_mppc_typestruct); +#ifdef NETGRAPH_MPPC_ENCRYPTION +/* Depend on separate rc4 module */ +MODULE_DEPEND(ng_mppc, rc4, 1, 1, 1); +#endif + /* Fixed bit pattern to weaken keysize down to 40 or 56 bits */ static const u_char ng_mppe_weakenkey[3] = { 0xd1, 0x26, 0x9e }; |
