From 61e626a6d84dfe787e8d36d08f8325a627903df3 Mon Sep 17 00:00:00 2001 From: mav Date: Fri, 18 May 2007 15:28:01 +0000 Subject: [PATCH] Fix build with NETGRAPH_MPPC_COMPRESSION but without NETGRAPH_MPPC_ENCRYPTION. Approved by: glebius (mentor) --- sys/netgraph/ng_mppc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c index 28c362dece35..0cf1e7272b9a 100644 --- a/sys/netgraph/ng_mppc.c +++ b/sys/netgraph/ng_mppc.c @@ -157,9 +157,11 @@ static int ng_mppc_compress(node_p node, struct mbuf **datap); static int ng_mppc_decompress(node_p node, struct mbuf **datap); +#ifdef NETGRAPH_MPPC_ENCRYPTION static void ng_mppc_getkey(const u_char *h, u_char *h2, int len); static void ng_mppc_updatekey(u_int32_t bits, u_char *key0, u_char *key, struct rc4_state *rc4); +#endif static void ng_mppc_reset_req(node_p node); /* Node type descriptor */ @@ -802,6 +804,7 @@ ng_mppc_reset_req(node_p node) d->flushed = 1; } +#ifdef NETGRAPH_MPPC_ENCRYPTION /* * Generate a new encryption key */ @@ -845,4 +848,5 @@ ng_mppc_updatekey(u_int32_t bits, bcopy(&ng_mppe_weakenkey, key, 1); rc4_init(rc4, key, keylen); } +#endif