lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * ccp.h - Definitions for PPP Compression Control Protocol. |
| 3 | * |
| 4 | * Copyright (c) 1994 The Australian National University. |
| 5 | * All rights reserved. |
| 6 | * |
| 7 | * Permission to use, copy, modify, and distribute this software and its |
| 8 | * documentation is hereby granted, provided that the above copyright |
| 9 | * notice appears in all copies. This software is provided without any |
| 10 | * warranty, express or implied. The Australian National University |
| 11 | * makes no representations about the suitability of this software for |
| 12 | * any purpose. |
| 13 | * |
| 14 | * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY |
| 15 | * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
| 16 | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF |
| 17 | * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY |
| 18 | * OF SUCH DAMAGE. |
| 19 | * |
| 20 | * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, |
| 21 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
| 22 | * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
| 23 | * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO |
| 24 | * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, |
| 25 | * OR MODIFICATIONS. |
| 26 | * |
| 27 | * $Id: ccp.h,v 1.1 2008-08-04 06:11:51 winfred Exp $ |
| 28 | */ |
| 29 | |
| 30 | typedef struct ccp_options { |
| 31 | bool bsd_compress; /* do BSD Compress? */ |
| 32 | bool deflate; /* do Deflate? */ |
| 33 | bool predictor_1; /* do Predictor-1? */ |
| 34 | bool predictor_2; /* do Predictor-2? */ |
| 35 | bool deflate_correct; /* use correct code for deflate? */ |
| 36 | bool deflate_draft; /* use draft RFC code for deflate? */ |
| 37 | bool mppe; /* do M$ encryption? */ |
| 38 | bool mppe_40; /* allow 40 bit encryption */ |
| 39 | bool mppe_128; /* allow 128 bit encryption */ |
| 40 | bool mppe_stateless; /* allow stateless encryption */ |
| 41 | u_short bsd_bits; /* # bits/code for BSD Compress */ |
| 42 | u_short deflate_size; /* lg(window size) for Deflate */ |
| 43 | short method; /* code for chosen compression method */ |
| 44 | } ccp_options; |
| 45 | |
| 46 | extern fsm ccp_fsm[]; |
| 47 | extern ccp_options ccp_wantoptions[]; |
| 48 | extern ccp_options ccp_gotoptions[]; |
| 49 | extern ccp_options ccp_allowoptions[]; |
| 50 | extern ccp_options ccp_hisoptions[]; |
| 51 | |
| 52 | extern struct protent ccp_protent; |
| 53 | |
| 54 | #ifdef MPPE |
| 55 | size_t mppe_generate_session_key(char *optbuf); |
| 56 | #endif |
| 57 | |