diff options
author | mav <mav@FreeBSD.org> | 2007-05-18 15:28:01 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2007-05-18 15:28:01 +0000 |
commit | 61e626a6d84dfe787e8d36d08f8325a627903df3 (patch) | |
tree | bb11f858a74d169738d755635598ddcc65287b3f /sys/netgraph | |
parent | 5ad0d6d6def6c5a2575dabcd2da461fab7c9e671 (diff) | |
download | FreeBSD-src-61e626a6d84dfe787e8d36d08f8325a627903df3.zip FreeBSD-src-61e626a6d84dfe787e8d36d08f8325a627903df3.tar.gz |
Fix build with NETGRAPH_MPPC_COMPRESSION but without NETGRAPH_MPPC_ENCRYPTION.
Approved by: glebius (mentor)
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_mppc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c index 28c362d..0cf1e72 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 |